events.py pep8 format