def main(): app = make_app(debug=True) app.listen(4000) print 'listening on port 4000' tornado.ioloop.IOLoop.current().start()