Intersection of 2d and 1d Numpy array,"A[:, 3:].flat[np.in1d(A[:, 3:], B)] = 0"