title: How to pass a class constructor to a python function
body: <p>Suppose I have a class <code>Foo</code>, I want to define a function that receives the class constructor as a parameter:</p>
  
  <pre><code>def bar(class_name):
      local_class = None
      # TODO: if I call bar(Foo()), I want to get local_class = Foo()
  </code></pre>
  
  <p>How can I implement the function? </p>