Typescript Map To Array Python Practice