'Apply filter functions to an endpoint until one of them
returns non-None.'

def applyFilters(self, endpoint):

    for filter_function in self.filter_functions:
        e = filter_function(endpoint)
        if (e is not None):
            return e
    return None
