I suggestion would be to use itertools.cycle and cycle on colors whetever the number of unique events.

would you be ok with that?