pep8 fixes

makes the code more compliant with PEP-8