finding which rows have all elements as zeros in a matrix with numpy,np.where(~a.any(axis=1))