Convert a list to a dictionary in Python,"dict((k, 2) for k in a)"