@gen.engine
def get(self):
    response = yield gen.Task(self.dosomething, 'argument')
self.write(response)
self.finish()

def dosomething(self, myargument, callback):
    pass
using gen.task with Tornado for a simple function