def _get_value(attr, soup):
    _child = soup.find("div", class_=attr)
    if _child is None:
        return None, None
    child = _child.findChild(class_="field")
    if child.next_element.name == "a":
        # special handling for links
        value = child.next_element.attrs['href']
    elif child.next_element.name == "span" and \
            child.next_element.attrs['class'] == ["noLink"]:
        # special handling for cases where we expect a link but UPU
        # doesn't have one for us
        value = None
    else:
        value = child.text.encode().decode('utf8')
    if value == 'None':
        value = None
    return value, child