from tornado.ioloop import IOLoop from tfw.server import TFWServer if __name__ == '__main__': TFWServer().listen() IOLoop.instance().start()