clean whitespace, fix blank lines according to pep8

Clean some whitespace.