Python : Import modules once then share with several files
<p>I have files as follow,</p>

<pre><code>file1.py
file2.py
file3.py
</code></pre>

<p>Let's say that all three use </p>

<pre><code>lib7.py
lib8.py
lib9.py
</code></pre>

<p>Currently each of the three files has the lines</p>

<pre><code>import lib7
import lib8
import lib9
</code></pre>

<p>How can I setup my directory/code such that the libs are imported only once, and then shared among the three files?</p>