Update events.py