Symmetric Tree Leetcode Solution Python