def get_parent(tree, child_clade):
    """
    Get the parent of a node in a Bio.Phylo Tree.
    """
    if child_clade == tree.root:
        return None
    node_path = tree.root.get_path(child_clade)
    if len(node_path) < 2:
        return tree.root
    return node_path[-2]