Typescript Nested Class Python Syntax For Input Output