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
You didn't call main anywhere, you've only defined it.
main