Typescript Nested Class Python Initialize Matrix