Adjusted number of newlines to conform to PEP-8

Fixes pep8 errors E301, E302, and E303.

Fun fact: Running git diff on this with --ignore-blank-lines
produces no output.