def print_iterate(dataset, gql, namespace=None, msg=''):
	it = iterate(dataset, gql, namespace)
	loaded = 0
	try:
		while True:
			loaded += 1
			if loaded % 1000 == 0:
				print >> sys.stderr, 'loaded', msg, loaded
			string = json.dumps(it.next())
			print string
	except __HOLE__:
		pass
	print >> sys.stderr, 'Done', msg, loaded
dataset/ETHPy150Open murer/dsopz/dsopz/reader.py/print_iterate