def untuple(x):
	"""Untuple a single value that was wrapped in a tuple."""
	assert type(x) == type(()), 'Expected tuple.'	# safety check
	assert len(x) == 1, 'Expected tuple singleton.'	# safety check
	return x[0]