I have a dictionary and I want to convert every value to utf-8. This works, but is there a \"more pythonic\" way?
for key in row.keys():
You can just iterate through the keys if you wanted to:
{x:unicode(a[x]).encode("utf-8") for x in a.keys()}