Minor PEP8 fixes for issue #1527