Typescript Dynamically Create Interface Python