text: from SimpleXMLRPCServer import SimpleXMLRPCServer
  from SimpleXMLRPCServer import SimpleXMLRPCRequestHandler
  
  # Restrict to a particular path.
  class RequestHandler(SimpleXMLRPCRequestHandler):
      rpc_paths = ('/RPC2',)
  
  # Create server
  server = SimpleXMLRPCServer(("localhost", 8000),
                              requestHandler=RequestHandler)
  server.register_introspection_functions()
  
  # Register pow() function; this will use the value of
  # pow.__name__ as the name, which is just 'pow'.
  server.register_function(pow)
  
  # Run the server's main loop
  server.serve_forever()
  