def make_unfilled(svg, color):
    """
    Turn this SVG into an unfilled symbol
    :param svg: The SVG, in xml.etree.ElementTree format
    :param color: The color to turn all elements to
    :return: The resulting SVG
    """
    stroke_elements = [ele for ele in svg.findall('.//*[@stroke]') if ele.attrib['stroke'] != 'none']
    for ele in stroke_elements:
        ele.attrib['stroke'] = color

    for fill_ele in [ele for ele in svg.findall('.//*[@fill]') if ele.attrib['fill'] != 'none']:
        if fill_ele.attrib['fill'] in ['#000000', '#000']:
            # Element is black; make it the unfilled color
            fill_ele.attrib['fill'] = color
        elif 'stroke' in fill_ele.attrib.keys() and fill_ele.attrib['stroke'] != 'none':
            # Element has a stroke; just set the fill to none
            fill_ele.attrib['fill'] = 'none'
        else:
            # Remove the element entirely
            fill_ele.attrib['fill'] = 'none'

    # Replace default-colored items
    for ele in [ele for ele in svg.findall('.//*') if 'fill' not in ele.attrib.keys()]:
        ele.attrib['fill'] = color

    return svg