fix py2.4 issue with logToScreen