Json Stringify Javascript Class Inheritance Python Interview