def __init__(self, filename=None):
        self.filename = None
        if filename:
            self.load(filename)
def deserialize(self, value):
        value = decode(value)
        validators.validate_choice(value.lower(), log.COLORS)
        return value.lower()