Typescript Add Value To Array Python Questions