pep8 fixes for all the code

* Tabs -> Spaces
* Remove trailing spaces
* Remove blank lines at end of file
* Remove extraneous backslashes
* Fix a couple of variable name typoes

Left the imports in __init__ alone.