I am trying to optimize the distance from node 0 in this exercise. I could not figure out how to automate the whole process where Python would read the data and print the sh