The typical header should be
#!/usr/bin/env python
But I found below also works when executing the script like $python ./my_script.p
$python ./my_script.p
The Python executable might be installed at a location other than /usr/bin, but env is nearly always present in that location so using /usr/bin/envis more portable.
env
/usr/bin/env