Unique Path Leetcode Solution Python