Fix python logger, code from motiyoshi was not correct for old_fashioned case (Py2.6)