Update analytics.py