[The `colorize` function in Pygments](https://bitbucket.org/birkenfeld/pygments-main/src/tip/pygments/console.py?at=default#cl-48) works very similarly, but accepts the color name first and the message second. Also, it uses lowercase color names. Could you make this function work the same way as the Pygments function?

Alternatively, you could simply import this function from Pygments and use it. You probably don't want to make it required, because it would be nice to avoid making people have to install Pygments before running any Paver commands. I typically do something like:

```python
try:
    from pygments.console import colorize
except ImportError:
    colorize = lambda color, text: text
```

Then I use the `colorize` function normally. If Pygments is installed, the function will work as expected -- if not, the function will simply return the text without color, which is not a bad fallback.