code style cosmetic changes
some pep8 improvements
pep8 formatting
more pep8 style improvements