human
Complete this python program:
def autodelegate(prefix=''):
assistant
#Here is the Python program you requested.

    """Returns a method that takes one argument and calls the method named prefix+arg,
    calling `notfound()` if there isn\t one. Example:
    urls = (\/prefs/(.*)\, \prefs\)
    class prefs:
    GET = autodelegate(\GET_\)
    def GET_password(self): pass
    def GET_privacy(self): pass
    `GET_password` would get called for `/prefs/password` while `GET_privacy` for
    `GET_privacy` gets called for `/prefs/privacy`.
    """
    def internal(self, arg):
        func = (prefix + arg)
        if hasattr(self, func):
            return getattr(self, func)()
        else:
            return notfound()
    return internal