Set a unique color from a serie

def scolor(self):
        """
        Set a unique color from a serie
        """
        global palette
        color = palette[self.color_index]
        if len(palette) - 1 == self.color_index:
            self.color_index = 0
        else:
            self.color_index += 1
        self.color(color)