lineStatistic.py - improve stdout and error msg display.