結果 : check for duplicates in dictionary python