using cmd or powershell, calling python file returns no output
<p>I've just installed python 2.7.2 on this machine. 
I'm attempting to run this code: </p>

<pre><code>class Hello(object):
    def main(self):
        print "hello world"

if __name__ == "main":
    h = Hello()
    h.main()     
</code></pre>

<p>When I call it with python ./foo.py, it does not return either a print statement or log statement, just what appears to be a newline.</p>

<p>When I call it from a python shell it works as expected. </p>

<p>Additionally, I could write the file:</p>

<pre><code>print "hello world"
</code></pre>

<p>And that will print in either powershell or cmd.
What am I missing?</p>
