if element.tag == 'h3' and len(sections) and sections[-1][0] == 'h2':
sections[-1][2].append((element.tag, ''.join(element.xpath('descendant-or-self::text()')), []))
else:
if element.tag == 'h3' and len(sections) and sections[-1][0] == 'h2':
sections[-1][2].append((element.tag, ''.join(element.xpath('descendant-or-self::text()')), []))
else: