To make a script executable (e.g. Python) executable from the shell, you must include the so-called hash bang line as the first line of the file (adjust your location of the binary python):
#!/usr/local/bin/python
, , , . chmod u+x <name_of_the_script.file>.
.
./<name_of_the_script.file>