title: Python module with methods imported from a sub-module into root namespace
body: <p>I want to create a Python module that works like NumPy. The methods are not only sub-modules in the leaves of the tree from the module source. There is a root module containing many methods that I can call directly, and there are also sub-modules. The problem is the root methods must be defined somewhere. I was thinking to have a directory structure:</p>
  
  <pre><code>module/
    __init__.py
    core.py
    stuff1.py
    submodule/
      __init__.py
      stuff2.py
      stuff3.py
  </code></pre>
  
  <p>Now that I want is for everything inside "core" to be imported into the "module" namespace, as if it were a module.py file, and the contents of core.py were inside this module.py. The problem is that module is a directory instead of a file, so how do I define these methods that should sit in the root of the module?</p>
  
  <p>I tried putting "from core import *" inside <strong>init</strong>.py, but that didn't work. (EDIT: Actually it does.)</p>
  
  <p>Should I have the core methods inside a "module.py" file, and also a module directory? I don't know if that works, but it looks pretty awkward.</p>