結果 : remove duplicates in python function