title: Inheriting from a class defined in an imported module in Python
body: <p>I have two Python classes in two separate modules. The modules reference each other, so I must use the <code>import XXX</code> syntax rather than <code>from XXX import YYY</code>. I can't figure out how to access a class defiend in one module in the other, importing module though:</p>
  
  <pre><code>### testa.py
  
  import testb
  
  class TestA():
    ...
  
  ### testb.py
  
  import testa
  
  class TestB(testa.TestA):  # doesn't work
    ...
  </code></pre>
  
  <p>How do I do this?</p>