When I want to run my python applications from commandline (under ubuntu) I have to be in the directory where is the source code app.py and run the application with command<
I'm pretty sure you have to make the script executable via chmod +x and put it in the PATH variable of your system.
chmod +x