title: Child class doesn't recognize module imports of parent class?
body: <p>I've got two classes in two different modules:</p>
  
  <ul>
  <li><code>animal.py</code></li>
  <li><code>monkey.py</code></li>
  </ul>
  
  <p><strong>animal.py:</strong></p>
  
  <pre><code>import json
  
  class Animal(object):
      pass
  </code></pre>
  
  <p><strong>monkey:</strong></p>
  
  <pre><code>import animal
  
  class Monkey(animal.Animal):
  
      def __init__(self):
          super(Monkey, self).__init__()
  
          # Do some json stuff...
  </code></pre>
  
  <p>When I try to instantiate a <code>Monkey</code>, I get a </p>
  
  <pre class="lang-none prettyprint-override"><code>NameError: global name 'json' is not defined
  </code></pre>
  
  <p>But I'm importing <code>json</code> in the defining module of the super class, so why wouldn't it be loaded?</p>