PEP8 compliance

This pull request contains a bunch of code formatting fixes, making the code respectful to PEP8 coding conventions.