Add test for event system (100% coverage!!)

This tests both the synchronous and async capabilities. Also,
since it's a unit test, I added some ground work for running the
python tests in parallel.

Also some minor style fixes for more rigorous pep8 compliance.