class MainApp(tornado.web.Application):

    def __init__(self):
        handlers = [('/', views.HomeHandler), ('.*', views.NotFoundHandler)]
motor_client = motor.motor_tornado.MotorClient('mongodb://localhost:27017')
run multiple tornado processess