Use tornado.gen.is_future for checking if result is a Future