fixed pep8 and pylint warnings