is there a more pythonic way to build this dictionary?,"dict((key_from_value(value), value) for value in values)"