def MatchMSB(list, msb):
	"""Search list of (name, value) pairs, returning new list in which
	values / 256 == msb."""
	results = []
	for (name, value) in list:
		if value / 256 == msb:
			results.append( (name, value) )
	return results