def transform_metadata(blob):
	"""
	Transforms metadata types about channels / users / bots / etc. into a dict
	rather than a list in order to enable faster lookup.

	"""
	o = {}
	for e in blob:
		i = e[u'id']
		o[i] = e
	return o