def METHOD_NAME(*arrays):
    """Generator of indices to slice arrays when they change"""
    borders = np.nonzero(reduce(np.logical_or,
                                (a[:-1] != a[1:] for a in arrays)))
    # Add Nones so we can slice from start to end
    return [None] + list(borders[0] + 1) + [None]