adds pep8 cleanup and an additional log message