import inspect


def dict_float2str(d):
	"""Input: (nested) dictionary with values that are floats
	Output: dictionary where all float values are replaced by strings"""
	adict = {}
	for key, value in d.items():
			if inspect.isclass(value):
					value = str(value)
			if type(value) == dict:
					value = dict_float2str(value)
			adict[key] = value
	return adict