def main(): http_server = tornado.httpserver.HTTPServer(Application()) http_server.listen(9876) tornado.ioloop.IOLoop.current().start()