def fix_python3(s):
	"""Convert "bytes" to string in python3, while leaving other types unmolested.
	Python3 string handling is stupid."""
	try:
		if isinstance(s, bytes): return s.decode("utf-8")
		else: return s
	except TypeError: return s