Python: Only color ids known to be variables