PEP-8 conformance improvements - part II

This PR, like the previous one, addresses a subset of the remaining PEP8 conformance errors. Most of the changes are whitepace only, with the exception being the changes for E721, where we replace type comparisons with calls to isinstance().