Typescript Insert Into Array Python Example Class