Primarily whitespace changes to conform to PEP8

There are a few cases where a variable was introduced to break a long line.
Eliminate unneeded imports and change variable name to avoid lint warning
Delete unused variable
Remove unnecessary imports
Remove unnecessary imports
Remove more unneeded imports
Whitespace fixes for PEP8
Remove unused variables
Remove unnecessary imports