Typescript Convert Number Array Python Definition