-
Must add
:by the end of the function name with().functionName(): function() // above ':' is very necessary
-
Using the right PATH of python intepreter for Python.
#!/usr/bin/env python
if you don't use it, then you will not run correct unless using python xxx.py, instead of ./xxx.py