def iterable_response_to_dict(iterator):
	""" Convert Globus paginated/iterable response object to a dict """
	output_dict = {"DATA": []}
	for item in iterator:
		dat = item
		try:
			dat = item.data
		except AttributeError:
			pass
		output_dict["DATA"].append(dat)
	return output_dict