def applyFilter(normalized_uri, xrd_data, flt=None):
    flt = mkFilter(flt)
    et = parseXRDS(xrd_data)

    endpoints = []
    for service_element in iterServices(et):
        endpoints.extend(
            flt.getServiceEndpoints(normalized_uri, service_element))

    return endpoints
Generate an iterable of endpoint objects given this input data,
dataset/ETHPy150Open CollabQ/CollabQ/openid/yadis/services.py/applyFilter