Work on scripts/check_duplicates.py