Update events.py

removed space after def name in line 25