def read(fname):
    return open(os.path.join(os.path.dirname(__file__), fname)).read()
def serialize(self, value, display=False):
        if value.lower() in log.COLORS:
            return encode(value.lower())
        return ""