def booleanformat(value):
    """
    Format a boolean value
    """
    if isinstance(value, bool):
        if value == True:
            return 'true'
        elif value == False:
            return 'false'
    else:
        return value
