

from SimpleXMLRPCServer import SimpleXMLRPCServer
from SimpleXMLRPCServer import SimpleXMLRPCRequestHandler
import xmlrpclib
import math

    

# Restrict to a particular path.
class RequestHandler(SimpleXMLRPCRequestHandler):
    rpc_paths = ('/RPC2',)

# Create server
server = SimpleXMLRPCServer(("localhost", 9990),
                            requestHandler=RequestHandler)
server.register_introspection_functions()

class MyFuncs():
	def exp(self,x,y):
		return x**y


server.register_instance(MyFuncs())
# Run the server's main loop
server.serve_forever()