.py does not execute

You most likely are missing the shebang line.

Windows uses file extensions to determine the file type (and everything else...), Linux is a bit more smart about it.

This should be the first line: #!/usr/bin/python

source: http://ubuntuforums.org/showthread.php?t=754542