revert events.py