pep8 style fixes

Hello.
I fixed all pep8 errors except that one which is about 80 chars max on a line.