def bool_2_str(value):
    """Convert boolean to a string "true" or "false"
    Required for eg. /json.htm?type=setused&idx=IDX&used=true|false

    Args:
        value (bool)

    Returns:
        "true" if True, else "false"
    """
    if isinstance(value, bool):
        return str(value).lower()
    else:
        return "false"