Tiny changes to events.py automatically done by emacs