pyintermediate: small pep8 fixes