How can I convince Python to import a class from a submodule when you import the package?
<p>Example: <code>mypkg/submodule.py</code> with class <code>MyClass</code> inside.</p>

<p>I want to be able to do:</p>

<pre><code>import mypkg
obj = MyClass()
</code></pre>

<p>What I need to do in order to make this work with default import?</p>

<p>I note that <code>from pkg import *</code> and <code>import pkg.submodule</code> works are working but I want to change the behaviour of the <strong>default import</strong>.</p>

<p>This is clearly related to <code>__init__.py</code> and <code>__all__</code>.</p>
