Colored text in Python using ANSI Escape Sequences

pretty.py is a miniature library that provides a Python print and stdout
wrapper that makes colored terminal text easier to use (eg. without having
to mess around with ANSI escape sequences). Just import the class and make
use of the printc(), writec(), or switchColor() methods in your own
programs. A test sequence is included and can be invoked if you execute the
script directly.