title: Get imported module objects
body: <p>Lets say we have a main program which follows:</p>
  
  <pre><code>class Bob():
      def __init__(self):
          print "Hi, I'm", self.__class__.__name__
  
  import usesBob
  </code></pre>
  
  <p>Where usesBob is</p>
  
  <pre><code>Bob = get_bob_from_main()
  class Dave(Bob): pass
  Dave()
  Bob()
  </code></pre>
  
  <p>Dave should print "Hi, I'm Dave" and
  Bob should print "Hi, I'm Bob"</p>
  
  <p>Obviously I won't be using this in production code, I just want to know if it is possible and if so, how.</p>