title: Why won't my python code print anything?
body: <p>A program I wrote wasn't printing anything when I executed it out of the terminal, so I tried the ran the following code</p>
  
  <pre><code>import sys
  
  #!/usr/bin/python
  
  def main(argv):
      print  "hell0\n"
      sys.stdout.flush()
  </code></pre>
  
  <p><a href="http://i.stack.imgur.com/rud88.png" rel="nofollow">this is the terminal</a> why is it not printing out hello. Is the main function even running?</p>