def getFunction(self, key, type='any'):
    for p in self._functions[key]:
        if (type in p['types']):
            return p['imp']
    return None
def getFunction(self, key, type='any'):
    for p in self._functions[key]:
        if (type in p['types']):
            return p['imp']
    return None