def partition(data, fragments):
    """Partion list into relative fractions"""
    total = sum(fragments)
    relative = len(data) // total
    i = 0
    for fragment in fragments:
        yield data[i:i + fragment * relative]
