np.unique flattens the tuples in later version of nunmpy. so set is the correct method