I think this line should be somewhere below, python file should start with #!/usr/bin/env python