Unique Paths II - Leetcode 63 - Python