import pycountry
cc = {}
t = list(pycountry.countries)
for country in t:
    cc[country.alpha2] = country.name
print(cc)
Country name from ISO short code in dictionary, how to deal with non-ascii chars