def callAfter(func, *args, **kwargs):
pool = NSAutoreleasePool.alloc().init()<EOL>obj = PyObjCAppHelperCaller_wrap.alloc().initWithArgs_((func, args, kwargs))<EOL>obj.callAfter_(None)<EOL>del obj<EOL>del pool<EOL>
call a function on the main thread (async)