Typescript Push Element In Array Python Question