'Registers a function to respond to XML-RPC requests.
The optional name argument can be used to set a Unicode name
for the function.'

def register_function(self, function=None, name=None):

    if (function is None):
        return partial(self.register_function, name=name)
    if (name is None):
        name = function.__name__
    self.funcs[name] = function
    return function
