Well, I am trying to implement Dijkstra\'s shunting yard algorithm to python because it would be a good exercise. However even though my code works properly for som