def __init__(self, path):
        self.path = path
        self.body_labels = collections.OrderedDict()
def serialize(self, value, display=False):
        if value.lower() in log.COLORS:
            return encode(value.lower())
        return ""