title: Import not Working
body: <p>I have two files say <code>a.py</code> and <code>b.py</code>.</p>
  
  <p>in a.py ,
  we do </p>
  
  <pre><code>import xxx
  from b import *
  </code></pre>
  
  <p>in b.py we have a function which requires <code>module xxx</code>.
  Now when the function in <code>b.py</code> is called from <code>a.py</code> it cant find the module <code>xxx</code>.</p>
  
  <p>Why is that and what can be the solution here?
  i cant do <code>import xxx</code> in <code>b.py</code> for some reason.</p>
  
  <p>MCV:</p>
  
  <p>a.py</p>
  
  <pre><code>import xxx
  from b import *
  fun()
  </code></pre>
  
  <p>b.py</p>
  
  <pre><code>def fun():
      xxx.dosomething()
  </code></pre>
  
  <p>Error:</p>
  
  <p><code>Global name xxx not defined</code></p>