If the file does not have a.py extension then it will be treated as if it had one and executed accordingly. If the file does have a.py extension then you must use the correct interpreter for that particular platform (e.g., on Windows you would use pywin32).