Typescript Access Array Python