Typescript Iterate Through Array Python Initialize