This PR changes no functionality, just makes the code a little more PEP8 etc compliant.