PEP 8 changes

Changed most of the code according to PEP 8. I didn't change the names though, thats your work ;)