def RemoveDuplicates(list):
	"""Scan list, remove elements whose value is same as the preceding element.
	Return the new list."""
	results = []
	results.append(list[0])
	for (name, value) in list[1:]:
		if value != results[-1][1]:
			results.append((name, value))
	return results