Update ShortestPath.py

Minor Change