Update remove_edges_from_tree.py