def get_ids(mydict,smarts_label):
	"""
	Given a dictionary and a value for an item returns all the keys with that value.
	"""
	items = mydict.items()
	ids_list = []
	for ids,smarts in items:
		if smarts == smarts_label: ids_list.append(ids)
	return ids_list