Improved anonymize.py