Json Stringify Javascript Class Inheritance Python