Returns root element for a list.

    :Args:
      root (Element): lxml element of current location

    :Returns:
      lxml element representing list

def _get_parent(root):
    """Returns root element for a list.

    :Args:
      root (Element): lxml element of current location

    :Returns:
      lxml element representing list      
    """

    elem = root

    while True:
        elem = elem.getparent()

        if elem.tag in ['ul', 'ol']:
            return elem