def remove_indices(items, indices):
    if indices:
        s = set(indices)
        items = [i for (idx, i) in enumerate(items) if (idx not in s)]
    return items
def remove_indices(items, indices):
    if indices:
        s = set(indices)
        items = [i for (idx, i) in enumerate(items) if (idx not in s)]
    return items