How to transform tuple of string(object locations) to dictionary of objects in python
<p>I would like to transform a tuple:</p>

<pre><code>TEST_CLASSES = (
   'common.test.TestClass',
)
</code></pre>

<p>to</p>

<pre><code>TEST_CLASSES = {
   'test': common.test.TestClass,
}
</code></pre>

<p>How to make a dictionary is simple but I have a problem with conversion from string to object. Could anybody help me please? thanks!</p>
