title: Class inheritance from different modules python
body: <p>I'm new to python and I have a hard time trying to figuring out how can I inherit from a class in an other module.</p>
  
  <p>module: ~/foo.py</p>
  
  <pre><code>import bar
  
  class foo:
      def test(self)
          print("this is a test")
  </code></pre>
  
  <p>module: ~/bar.py</p>
  
  <pre><code>class bar(foo):
      def __init__(self):
          super().test()
  </code></pre>
  
  <p>As soon as bar is imported, I get this error message :</p>
  
  <pre><code>NameError: name 'foo' is not defined
  </code></pre>