title: Python script ends before async callback
body: <p>I am using a library that asynchronously calls a server method like so:</p>
  
  <pre><code>def asyncCallback(error, result):
      print error, result
  
  server.call("methodname", [param1, param2], asyncCallback)
  </code></pre>
  
  <p>The only problem is that the asyncCallback never gets called. I thought for a while this was an issue with the API I was using until I added a <code>exiting = raw_input("about to exit")</code> which will hang the program up. Then I will see the asyncCallback printout.</p>
  
  <p>Any ideas how to handle this situation? Honestly, it would be so nice if this was just synchronous, e.g. <code>error, result = server.call("methodname", [param1, param2])</code>. I suppose that would have major performance shortcomings but this is just a convenient script and the program won't be doing anything else but waiting for the callback in the meantime. </p>