efficient loop over numpy array,"np.nonzero(np.any(a, axis=0))[0]"