def tally_output(cons_file, output_path, file_stem):
	"""Writes a tally file for easy graphing/analysis.""" 

	tally_file = "{}/{}.tally".format(output_path, file_stem)

	with open(cons_file, "r") as reader, open(tally_file, "w") as writer:

		for line in reader:
			if line.startswith('#'):
				writer.write(line.split('# ')[1])

	return tally_file