def print_formatted_2(output):
	"""
	textual output of mecules in 3 |-separated field per line (and per molecule).
	molecule id | list of atom indexes | list of chemical shifts in the same order as in the list of atom indexes
	"""
	output_formatted = ""
	for (molid, curmol) in output:
		atomids = ' '.join([str(curatom[0]+1) for curatom in curmol])
		chemshifts = ' '.join(["%.2f" % (curatom[1],) for curatom in curmol])
#		print(" | ".join([str(molid+1), atomids, chemshifts]))
		output_formatted += (" | ".join([str(molid+1), atomids, chemshifts]) + '\n')
	return output_formatted