Typescript Add Value To Array Python Memory