Typescript Nested Class Python Oop Inheritance In Python