fixed bug in shortest path python code