ok i would suggest you read a few beginners guides to python programming in linux.
an extremely basic python program would go something like this..
Open up a text editor (vi, nano, kate, gedit etc)
and add the following:
print "Hello World"
Save this as helloworld.py
Then drop to a console cd to where you saved the file, and
chmod +x helloworld.py
Then run it by executing in the console: