a = (vals[:, (0)] == vals[:, (1)]) | (vals[:, (1)] == vals[:, (2)]) | (vals
    [:, (0)] == vals[:, (2)])
vals = numpy.delete(vals, numpy.where(a), axis=0)
Removing duplicates in each row of a numpy array