Changed find_duplicate_entries to python