'Makes an internal node from an element object that is guranteed to be a parent node.
Gets the value of interests like events and appends it to a custom node object that will be passed to PhyloTree to make nodes'

def _makeInternalNode(self, internalNode, depth=0):

    node = {}
    for child in internalNode:
        childTag = self.cleanTag(child.tag)
        if (childTag == 'clade'):
            continue
        elif (childTag in self.tagsOfInterest):
            if (childTag == 'events'):
                (key, text) = ('events', self.cleanTag(child[0].tag))
            else:
                key = self.tagsOfInterest[childTag]
                text = child.text
            node[key] = text
    return self.phyloTree.makeNode(self._getNodeName(internalNode, depth), **node)
