Typescript Nested Class Python Initiate