Python: Accessing another class of current module by name
<p>I have the following setup in one module:</p>

<pre><code>class A(object):
    # stuff

class B(object):
    # stuff
</code></pre>

<p>Now what I want to do is, creating an instance of class <code>A</code> by name (I just have the class name as a string) inside of <code>B</code>. How can I do this avoiding the <code>globals</code> function?</p>
