title: python import modules inside folder
body: <p>Want to learn the proper way for importing modules with folder</p>
  
  <pre><code>/garden
      __init__.py
      utilities.py
      someTools.py
      /plants
          __init__.py
          carrot.py
          corn.py
  </code></pre>
  
  <p>Inside <code>/plants/__init__.py</code> I have</p>
  
  <pre><code>__all__ = ['carrot', 'corn']
  from . import *
  </code></pre>
  
  <p>inside <code>carrot.py</code></p>
  
  <pre><code>def info():
      print "I'm in carrot.py"
  </code></pre>
  
  <p>When I do </p>
  
  <pre><code>import garden
  garden.carrot.info()
  # got correct result
  I'm in carrot.py
  </code></pre>
  
  <p>My question is how do I correct namespace for <code>utilities.py</code> for example inside <code>carrot.py</code> and <code>corn.py</code>.  I want to use function in <code>utilities.py</code></p>
  
  <p>Inside <code>carrot.py</code> when I </p>
  
  <pre><code>import utilities as util
  
  # try use it and got global name error
  util.someFunc()
  # NameError: global name 'util' is not defined # 
  </code></pre>
  
  <p>Can I configure <code>__init__.py</code> in plants folder so that it import all the modules inside garden? Like utilities and sometools ? so I don't have to import utilities in both carrot.py and corn.py and be able to use utilities ?</p>