Typescript Type Array Object In Python Example Problem