Leetcode Javascript Class Extends Json Parser Python