Creating class instances
<p>Could someone please explain to me how to create class instances from a list (or a string that might be fetched from excel). I always seem to run into this problem. I want to create many instances of classes and then save them in a shelve later.</p>

<p>This sample code doesn't work, but illustrates the approach I'm trying.</p>

<pre><code>class test:
  def __init__(self):
      self.a='name'

if _name__=='__main__':
   list=['A','B']
   for item in list:
       item=test()
</code></pre>
