pep8: blankline fixes
pep8: operator whitespace and formatting
pep8: fix imports
give a default implementation of the events module

Tests won't launch otherwise.