Changing wireframe colors for individual objects/bones in 3d viewport

Does someone know a way, or can someone write a script that will allow me to change the wire display color of individual objects or bones, so that I can, for instance, set all the control bones on the left half of my model to red and the bones on the right to blue?

Thanks