def normalize_pc_counter(dict_in):
	"""
	Normalize a dictionary by the sum of the total values. Meant to be used with the
	net ql values from :obj:`decitala.hm.hm_utils`.

	>>> d = {0: 0, 1: 0.375, 2: 0, 3: 0.25, 4: 0.375,
	... 	5: 0.375, 6: 0.375, 7: 0, 8: 0.75, 9: 0.25, 10: 0, 11: 0
	... }
	>>> for pc, norm_val in normalize_pc_counter(d).items():
	... 	print(pc, norm_val)
	0 0.0
	1 0.13636363636363635
	2 0.0
	3 0.09090909090909091
	4 0.13636363636363635
	5 0.13636363636363635
	6 0.13636363636363635
	7 0.0
	8 0.2727272727272727
	9 0.09090909090909091
	10 0.0
	11 0.0
	"""
	net = sum(dict_in.values())
	normalized_dict = {x: (y / net) for x, y in dict_in.items()}
	assert round(sum(normalized_dict.values())) == 1
	return normalized_dict