結果 : remove duplicate pairs from list python