convert a list to a dictionary in python,"dict((k, 2) for k in a)"