title: Python: update argument in thread
body: <p>I was wondering if it would be possible to start a new thread and update its argument when this argument gets a new value in the main of the program, so something like this:</p>
  
  <pre><code>i = 0
  
  def foo(i):
      print i
      time.sleep(5)
  
  thread.start_new_thread(foo,(i,))
  
  while True:
      i = i+1
  </code></pre>
  
  <p>Thanks a lot for any help!</p>