def dtt(f, *a, **k): return defer_to_thread(reactor.callFromThread, reactor.callInThread, f, *a, **k)
def call_wrapper(*a, **kw): return defer_to_thread(self.local_queue_task, self.thread_queue_task, f, *a, **kw)
def dtt(f, *a, **k): return defer_to_thread(reactor.callFromThread, reactor.callInThread, f, *a, **k )