title: Problem with python and __import__
body: <p>Sorry for the generic title, will change it once I understand the source of my problem
  I have the following structure:</p>
  
  <pre><code>foo/
  foo/__init__.py
  foo/bar/
  foo/bar/__init__.py
  foo/bar/some_module.py
  </code></pre>
  
  <p>When I try to import some_module by doing so:</p>
  
  <pre><code>from foo.bar import some_module
  </code></pre>
  
  <p>it works like a charm.
  But this is no good for me, since I only know the name of the module to import in runtime. so if I try:</p>
  
  <pre><code>from foo.bar import *
  mod=__import__('some_module')
  </code></pre>
  
  <p>I get an error. Am I doing something wrong? Is there a better way to do this? and why is this happening?</p>
  
  <p>Why is that? I am not quite sure I completely understand the concept behind python packages. I thought they were equivalent to java's packages and thus  </p>