def expandServices(service_elements):
    expanded = []
    for service_element in service_elements:
        expanded.extend(expandService(service_element))

    return expanded
Take a sorted iterator of service elements and expand it into a
dataset/ETHPy150Open necaris/python3-openid/openid/yadis/etxrd.py/expandServices