Difference Between Two Objects Leetcode Python Solutions