def _split_sections(lines):
    """Split `lines` into sections of lines that have the same amount of parts"""
    sections = []
    while lines:
        line = lines.pop(0)
        partnum = len(line)
        section = [line]
        while lines and len(lines[0]) == partnum:
            line = lines.pop(0)
            section.append(line)
        sections.append(section)
    return sections
