title: importing a module in nested packages
body: <p>This is a python newbie question: </p>
  
  <p>I have the following directory structure:</p>
  
  <pre><code>test
   -- test_file.py
  a
   -- b
     -- module.py    
  </code></pre>
  
  <p>where <code>test</code>, <code>a</code> and <code>b</code> are folders. Both <code>test</code> and <code>a</code> are on the same level.</p>
  
  <p>module.py has a class called <code>shape</code>, and I want to instantiate an instance of it in test_file.py. How can I do so?</p>
  
  <p>I have tried:</p>
  
  <pre><code>from a.b import module
  </code></pre>
  
  <p>but I got:</p>
  
  <pre><code>ImportError: No module named a.b
  </code></pre>