What could be a reason why a class can't be accessed from within another class's function?
<p>I have 2 classes:</p>

<pre><code>import follow
class User(object):
    def __init__(self):
        pass

import user
class Follow(object):
    def doSomething(self):
        u = User()

&gt;&gt; f = Follow()
&gt;&gt; f.doSomething()
&gt;&gt; NameError: global name 'User' is not defined
</code></pre>

<p>Is this causing a problem because both classes import each other?  Is there the equivalent of an import once?  Any other potential causes?  Thanks.</p>
