def bool_to_str(value):
    """Return 'true' for True, 'false' for False, original value otherwise."""
    if value is True:
        return 'true'
    if value is False:
        return 'false'
    return value
