PEP8 style fixes to engine package

Nose tests passed with 201 tests skipped.
pep8 ran with no errors.