You tell your shell okay which program should interpret my code and that is some python out there that you have installed so that's the first step then after you've done this you no longer need to type python anymore. If one portion of your file is doing something that can be done by another command line tool then consider removing that for example downloading a file. You would still need to type period and a slash because this file is presumably not yet on your search path.