leetcode python version resolution