how to dynamically create an instance of a class in python?
<p><br>
I have list of class names and want to create their instances dynamically. for example:</p>

<pre><code>names=[
'foo.baa.a',
'foo.daa.c',
'foo.AA',
 ....
]

def save(cName, argument):
 aa = create_instance(cName) # how to do it?
 aa.save(argument)

save(random_from(names), arg)
</code></pre>

<p>How to dynamically create that instances in Python? thanks!</p>
