Typescript Map To Array Python Example