How do I invoke a function from a dynamic class from a module?
<p>Normal way:</p>

<pre><code>import ham
ham.eggs.my_func()
ham.sausage.my_func()
</code></pre>

<p>How I want it "Dynamic" way:</p>

<pre><code>str = 'eggs'
ham.str.my_func()
str = 'sausage'
ham.str.my_funct()
</code></pre>

<p>Same thing, but ideally how I would use it in a loop:</p>

<pre><code>for x in ['eggs', 'sausage']
    ham.x.my_func()
</code></pre>

<p>Basically, I want a string tell which class's my_func to invoke?</p>
