def extract_line(text_list, keyword, vname, col):
	"""Takes a list of text and for every line containing the keyword,
	creates a dictionary where vname is key and the word at col is the value.
	Used for extracting one value from output file.
	"""
	dictionary = {}
	for line in text_list:
		if keyword in line:
			dictionary[vname] = line.split()[col-1]
	return dictionary