Typescript Create Dynamic Json Parsing Python Programming