def findall(root, xpath, attribute_name=None, attribute_value=None):

    found_elements = []


    # python 2.6 < does not support complicated XPATH expressions used lower
    if (2, 6) == sys.version_info[0:2] and which_etree() != 'lxml.etree':

        elements = root.getiterator(xpath)

        if attribute_name is not None and attribute_value is not None:
            for element in elements:
                if element.attrib.get(attribute_name) == attribute_value:
                    found_elements.append(element)
        else:
            found_elements = elements
    # python at least 2.7 and/or lxml can do things much simplier
    else:
        if attribute_name is not None and attribute_value is not None:
            xpath = '%s[@%s="%s"]' % (xpath, attribute_name, attribute_value)
        found_elements = root.findall('.//' + xpath)

    if found_elements == []:
        found_elements = None
    return found_elements
The function will return True if the r tag passed in is considered bold.
dataset/ETHPy150Open geopython/OWSLib/owslib/util.py/findall--crossover with--dataset/ETHPy150Open PolicyStat/docx2html/docx2html/core.py/is_bold