Remove items in a list according to another list.

def remove_by(keys, original):
    """Remove items in a list according to another list."""
    for i in [
            original[index]
            for index, needed in enumerate(keys) if not needed
    ]:
        original.remove(i)