def pairs_to_dict(response):
 it = iter(response)
 return dict(izip(it, it))

def pairs_to_dict ( response ) : it = iter ( response ) return dict ( izip ( it , it ) )
create a dict given a list of key/value pairs .