Should do the equivalent of ```python def multi_enumerate(M): it = np.nditer(M, flags=["multi_index"]) for x in it: yield it.multi_index, x ``` but also work for Python iterables of iterables.