rootnode = Node(None, 'rootrank', 'Root')
for match in matches:
    node = rootnode
for branch in match:
    category, name = branch
node = Node(node, category, name)
print([n.ID() for n in node.fullPath()])
Constructing a phylogentic tree