Typescript Push To Empty Array Python Memory