def partition(parts):
    encoded = deque()
    for part in parts:
        if is_encoded(part):
            encoded.append(part)
            continue
        if encoded:
            yield join_parameters(encoded)
            encoded = deque()
        yield part
    if encoded:
        yield join_parameters(encoded)
Insert a list of cubes
dataset/ETHPy150Open mailgun/flanker/flanker/mime/message/headers/parametrized.py/partition--crossover with--dataset/ETHPy150Open neurodata/ndstore/ocpca/ocpcadb.py/OCPCADB.putCubes