def METHOD_NAME(self):
    color_blocks = []
    for color_block in self.color_blocks:
        if len(color_block) > 0:
            color_blocks.append(color_block)
    self.color_blocks = color_blocks