After compiling a in unix-working python file using
import py_compile
py_compile.compile('server.py')
I get the .pyc file in the same directory, but when I try to run this file using './server.pyc' in putty all I get is scrambled code as an output and nothing really happens.
So the question is, how to compile a .py file properly to a .pyc file and how to run this .pyc file?
ps: I did test compiling & running a basic script, which worked..