Added ability to handle color commands from Python

It doesn't actually do anything with the color commands, though.
Also, not tested yet.