I have a python script. Lets say http://domain.com/hello.py,  which only prints "Hello, World!".
Is it possible to precompile this Python file? 
I get around 300 requests per second and the overhead of compiling is way to high. In Java the server can handle this easily but for calculations Python works much easier.
via the python interface where your python source file is abc.py:

import py_compile
py_compile.compile('abc.py')
Can I pre-compile a python script?