title: Dictionary with classes?
body: <p>In Python is it possible to instantiate a class through a dictionary?</p>
  
  <pre><code>shapes = {'1':Square(), '2':Circle(), '3':Triangle()}
  
  x = shapes[raw_input()]
  </code></pre>
  
  <p>I want to let the user pick from a menu and not code huge if else statements on the input.  For example if the user entered 2, x would then be a new instance of Circle.  Is this possible?</p>