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
In python your code doesn't have to be in a function, and all functions have to be explicitly called.
Try something like this instead:
#!/usr/bin/python import sys print "hell0\n"