human
I wrote the below code

    def internal(self, arg):
        if ('/' in arg):
            (first, rest) = arg.split('/', 1)
            func = (prefix + first)
            args = [('/' + rest)]
        else:
            func = (prefix + arg)
            args = []
        if hasattr(self, func):
            try:
                return getattr(self, func)(*args)
            except TypeError:
                return notfound()
        else:
            return notfound()
    return internal

What's a good function header?
assistant
#Here is Python code to fix + first)
.

def autodelegate(prefix=''):