def _to_appropriate_type(s):
	"""convert string `s` to an int, bool, or float, as appropriate. Returns
	the original string if it does not appear to be any of these types."""
	if s == 'True' or s == 'T':
		return True
	elif s == 'False' or s == 'F':
		return False
	try:
		return int(s)
	except:
		pass
	try:
		return float(s)
	except:
		pass
	return s