title: how can i pass custom function when sublassing from thread in python
body: <p>I have this code</p>
  
  <pre><code>class MyTh(threading.Thread):
  
      def __init__(self, group=None, target=None, name=None,
                   args=(), kwargs=None, verbose=None):
          threading.Thread.__init__(self, group=group, target=target, name=name,
                                    verbose=verbose)
          self.args = args
          self.kwargs = kwargs
          return
  
      def run(self):
          logging.debug('running with %s and %s', self.args, self.kwargs)
          return
  
  def my_func(): 
     print 'Everything OK'
  </code></pre>
  
  <p>when i do this</p>
  
  <pre><code>t1 = MyTh(name='Thread '+ str(i), target=myfunc, args=("test",), kwargs={'a':'A', 'b':'B'})
      t1.start()
  </code></pre>
  
  <p>my target function is not called at all. how can i make my thread call the default function given in target</p>