pylint and pep8 errors cleaned up.