Typescript Change Index In Array Python Definition Quizzically