def METHOD_NAME(self, name):
    fns = [fn for fn in self.functions if fn.name == name]
    if len(fns) == 0:
        return None
    elif len(fns) == 1:
        return fns[0]
    else:
        print 'warn: more than one function named', name
        return None