64 Minimum Path Sum Leetcode Solution Python