console changes and pep8 compliance