Cosmetic/style fixes in Python test suite