/usr/bin/env
is not the correct path to Python. Most likely the shebang line should read:
#!/usr/bin/env python
I am pretty sure it needs to be the first line, so delete the "<stdin>"
line as well (that's ignored by Python anyway).
Also make sure you have set the execute permission on the script: chmod +x /path/to/script.py