PEP8ified the code, fixed some pylint errors