Pep8 cleanups

A huge number of small whitespace changes suggested by the pep8 utility.  Reduces the number of pep8 complaints from 2190 to 536.