title: Python:How to import a object in a module to local reference?
body: <p>I'm loading a object from pickle, which depend on some other. And in order to sort them, I put them in a module.<br />
  The problem is, for example there is a object <code>foo</code> in module <code>set.py</code>, when importing it will become <code>&lt;class 'set.foo'&gt;</code> instead of <code>&lt;class 'foo'&gt;</code>, so the object loading from pickle cannot find the dependence.</p>
  <p>I have tried:<br />
  <code>import set</code><br />
  <code>from set import foo</code> / <code>from set import *</code><br />
  <code>from set import foo as foo</code><br />
  and print it to see the the reference<br />
  but it still import as <code>&lt;class 'set.foo'&gt;</code></p>