pep8 cleanup

Fixed a lot of white space issues and long lines using autopep8 https://github.com/hhatto/autopep8