title: Execute Python function in Main thread from call in Dummy thread
body: <p>I have a Python script that handles aynchronous callbacks from .NET Remoting. These callbacks execute in a dummy (worker) thread. From inside my callback handler, I need to call a function I've defined in my script, but I need the function to execute in the main thread. </p>
  
  <p>The Main thread is a remote client that sends commands to a server. Some of these commands result in asynchronous callbacks.</p>
  
  <p>Basically, I need the equivalent of .NET's Invoke method. Is this possible?</p>