Why does a specific import sees other imports? Python 2.6
<p>I have two files. SysDump.py which does <code>from libApi import _SysDump</code> and in the other file libApi.py I have many classes and one of them is </p>

<pre><code>class _SysDump():
    import cPickle as _cPickle
    import math as _math
    from zipfile import ZipFile as _ZipFile
    import re as _re 
</code></pre>

<p>the problem is the import in SysDump not only sees the _SysDump in libApi.py but other classes too!! How can I prevent it from seeing inside the other classes?</p>

<p>Python 2.6. Yes I do have a <code>__init__.py</code>. Can it in any way help bring the privacy I am hoping for?</p>
