def to_string(self, value):
    if (value is True):
        return '1'
    elif (value is False):
        return '0'
    return str(value)
def to_string(self, value):
    if (value is True):
        return '1'
    elif (value is False):
        return '0'
    return str(value)