ansicol
ansicol is a Python module to color screen output using ANSI escape sequences.
It is a partial port of the Term::AnsiColor Perl module.
ansicol can be installed from PyPI:
pip install ansicol
The API documentation is available here: http://ansicol.readthedocs.org/en/latest/.