A program I wrote wasn\'t printing anything when I executed it out of the terminal, so I tried the ran the following code
import sys #!/usr/bin/python def
Python does not automatically call main() (and you'll need to use the sys library to get argv).
#!/usr/bin/python import sys def main(): print "hell0\n" main()