code: def _grab_xpath(root, xpath, converter=lambda x: x):
      
      elements = root.xpath(xpath)
      if elements:
          return converter(str(elements[0]))
      else:
          return None
docs: XML convenience - grabs the first element at xpath if present, else returns None.