PEP8 code style fixes in tests.
PEP8 code style fixes in app code.