def replace_indexes(listy, idxs_to_replace, new_values):
    """
    Remove given indexes and insert a new set of values into the given list.
    """
    for idx in reversed(sorted(idxs_to_replace)):
        del listy[idx]
    idx_to_add = min(idxs_to_replace)
    for value in reversed(new_values):
        listy.insert(idx_to_add, value)
