small modification of the console_writer.py