Coming from Java, I am trying to implement A* algorithm in python and I\'m having trouble sorting vertices in my graph that have equal f scores. I\'m trying to do so using <