code: def Start(self):
      
      try:
        self._http_server = http_server.HTTPServer(("", self.port),
                                                   StatsServerHandler)
      except socket.error as e:
        if e.errno == errno.EADDRINUSE:
          raise base_stats_server.PortInUseError(self.port)
        else:
          raise
  
      self._server_thread = threading.Thread(
          target=self._http_server.serve_forever)
      self._server_thread.daemon = True
      self._server_thread.start()
docs: Start HTTPServer.