Python is installed in a local directory.
My directory tree looks like this:
(local directory)/site-packages/toolkit/interface.py
In linux server try dos2unix script_name
dos2unix script_name
(remove all (if there is any) pyc files with command find . -name '*.pyc' -delete)
pyc
find . -name '*.pyc' -delete
and re run in the case if you worked on script on windows