To convert ansi escape sequences into text colors you need a terminal that understands what you are doing. Linux does this by default; dos and windows do not. You need to have an extra program in memory. The conventional approach is the "ANSI.SYS" driver which probably still ships with Windows (link below).
I've included a link to nansi.com but haven't used it with any windows version > 3.1. If memory serves it is significantly faster. http://support.microsoft.com/default.aspx?scid=kb;en-us;Q101875 http://alumnus.caltech.edu/~dank/nansi/ -- http://mail.python.org/mailman/listinfo/python-list