new_contents: # -*- coding: utf-8 -*-
  
  import logging
  import tornado.web
  
  logger = logging.getLogger(__name__)
  
  
  class FakeAPIHandler(tornado.web.RequestHandler):
  
      def get(self, path_request):
          if path_request == '' or path_request == '/':
              logger.info('user did not write anything')
              self.write('You do not provide anything to echo :(')
              return
          elif path_request.startswith('/'):
              path_request = path_request[1:]
              logger.info('user wrote : ' + path_request)
              self.write(path_request)
              return
          logger.error('Unknow error or the user send a really bad request : ' + path_request)
          self.send_error(status_code=500, reason='Server Internal Error')
          return
  
subject: Create FakeAPIHandler.py