PEP8 and some pylint errors