Fixed bug introduced in 0745cb3cdd in events.py

Hello Severin ;-)
Merge pull request #3 from anaDachia/fix-events

Fixed bug introduced in 0745cb3cdd in events.py