def _dict_helper(desc, row):
 return dict(zip([col[0] for col in desc], row))

def _dict_helper ( desc , row ) : return dict ( zip ( [ col [ 0 ] for col in desc ] , row ) )
returns a dictionary for the given cursor .