I have a function in which variables of 'node1', 'node2', 'node3' are referenced.
I would like to make it so that the second time the function is called, 'node1' become 'node1_a' and on the third time 'node1_b' and so on.
These 'dynamic' variables are referenced only within the function. I have some code below if it helps understanding.
def marriage(husband, wife):
    count += 1
    node1 = pydot.Node(str(husband))
    node3 = pydot.Node('node_a', label='', style = 'invisible', shape = 'circle', width = '.001', height = '.001')
    node2 = pydot.Node(str(wife))
    tree.add_edge(pydot.Edge(node1, node3, style = "dashed"))
    tree.add_edge(pydot.Edge(node3, node2, style = "dashed"))
 
     
    