Update shortpath.py

fixed cost