Typescript Set To Array Python