Alias to python module
<p>I have some python module, that I import as:</p>

<pre><code>from mygraph.draw import pixel
</code></pre>

<p>The file structure looks like that:</p>

<pre><code>mygraph/
    __init__.py
    draw.py
</code></pre>

<p>and <code>draw.py</code> contains <code>def pixel()</code></p>

<p>Now, I want to add another function, <code>line()</code>, and I want to import it as</p>

<pre><code>from mygraph.draw import line
</code></pre>

<p>I can simply add <code>line</code> to <code>draw.py</code>. But, I would like to have <code>line()</code> in a separate file <code>line.py</code> and not mess with draw.py. But, if I place it in a separate file, it will be imported as</p>

<pre><code>from mygraph.line import line
</code></pre>

<p>and that is not what I want...</p>

<p>Is it possible to "alias" somehow the <code>line.py</code> so it is visible in <code>draw</code> module, but is in separete file? I thought about adding a dummy function in <code>draw</code> </p>

<pre><code>def line():
    return real_line.line()
</code></pre>

<p>but in this case I won't have a "docstring" from the original <code>line</code>, and I will loose some performance on calling the real line function.</p>
