def string_list(hsalist_path):
	"""
	Opens the list of hsa:x and belonging gene names, and creates a list with hsa:x and only one corresponding name. 
	Requires a downloaded version of all hsa:x IDs from KEGG.
	List is found at: http://rest.kegg.jp/list/hsa
	Returns the finished list of one name for each ID. 

	"""
	names = {}
	with open(hsalist_path, 'r') as searchfile:
		lines = searchfile.readlines()
		for line in lines:
			n = line.replace(";", "")
			t = n.split()
			names[t[0]] = t[1].split(',')[0]

	return names