pep8 fixes

Another set of pep8 fixes
perhaps these for-loops would be easier to read if the iterable was saved into a usefully named variable? I don't like parentheses on for-loop items unless I am dealing with multiple items.