Update detect_duplicates.py