Applying a function to values in dict,"d2 = dict((k, f(v)) for k, v in list(d1.items()))"