flush log message
fix pep8