old_contents: #!/usr/bin/env python
  
  import tornado.httpserver
  import tornado.ioloop
  import tornado.options
  import tornado.web
  import tornado.escape
  import tornado.template
  
  from tornado.options import define, options
  
  define("port", default=8888, help="run on the given port", type=int)
  
  
  class MainHandler(tornado.web.RequestHandler):
      def get(self):
      self.write("Hello, world")
  
  class ProjectHandler(tornado.web.RequestHandler):
      def get(self, project_id):
          self.write("You requested the project " + project_id)
  
  def main():
      tornado.options.parse_command_line()
      application = tornado.web.Application([
          (r"/", MainHandler),
          (r"/(\w+)", ProjectHandler),
      ])
      http_server = tornado.httpserver.HTTPServer(application)
      http_server.listen(options.port)
      tornado.ioloop.IOLoop.instance().start()
  
  if __name__ == "__main__":
      main()
  
new_contents: #!/usr/bin/env python
  
  import tornado.httpserver
  import tornado.ioloop
  import tornado.options
  import tornado.web
  import tornado.escape
  import tornado.template
  
  from tornado.options import define, options
  
  define("port", default=8888, help="run on the given port", type=int)
  
  
  class MainHandler(tornado.web.RequestHandler):
      def get(self):
          self.write("Hello, world")
  
  class ProjectHandler(tornado.web.RequestHandler):
      def get(self, project_id):
          self.write("You requested the project " + project_id)
  
  def main():
      tornado.options.parse_command_line()
      application = tornado.web.Application([
          (r"/", MainHandler),
          (r"/(\w+)", ProjectHandler),
      ])
      http_server = tornado.httpserver.HTTPServer(application)
      http_server.listen(options.port)
      tornado.ioloop.IOLoop.instance().start()
  
  if __name__ == "__main__":
      main()
  
subject: Indent properly, get helloworld working