python: whitespace cleanup for pep8 compliance