Update minPathSum.py

change code more short and readable.