title: Threading and passing values with **kwargs errors to TypeError
body: <p>I'm pretty new to Python and was looking into using threading for some code via this post:
  <a href="https://stackoverflow.com/questions/12868956/python-using-threads-or-a-queue-to-iterate-over-a-for-loop-that-calls-a-functi">Python - Using threads or a queue to iterate over a for loop that calls a function</a></p>
  
  <p>I was wondering why this simple example code errors out to  </p>
  
  <pre><code>Error: line 1: TypeError: file &lt;maya console&gt; line 4: __init__() got
  an unexpected keyword argument 'A' #
  </code></pre>
  
  <p>My code:</p>
  
  <pre><code>import threading
  class Test(threading.Thread):
      def __init__(self, **kwargs):
          super(Test, self).__init__( **kwargs)
          self.__dict__.update(**kwargs)
  
  A = None
  B = 1   
  test = Test(A = A, B = B)
  print test.A
  print test.B
  </code></pre>
  
  <p>My assumption is it has to do with <code>super(Test, self).__init__( **kwargs)</code> call, but I'm not sure how to work around it.  My goal is pass in a rather large amount of arguments which is why I'm using <code>**kwargs</code> to begin with.</p>