Applying color to volume through script?

A post was split to a new topic: How to change Segment Editor Paint effect options from Python script