'Create windmill xmlrpc dispatcher'

def __init__(self, instance=None, methods=None):

    if (methods is None):
        methods = []
    try:
        self.dispatcher = SimpleXMLRPCDispatcher(allow_none=True, encoding=None)
    except TypeError:
        self.dispatcher = SimpleXMLRPCDispatcher()
    if (instance is not None):
        self.dispatcher.register_instance(instance)
    for method in methods:
        self.dispatcher.register_function(method)
    self.dispatcher.register_introspection_functions()
