def remove_comments(input_string):
	""" Helper function for import_test.
	Removes all parts of string that would be commented out by # in python

	paramters
	---------
	input_string: string

	returns
	-------
	string where all parts commented out by a '#' are removed from input_string
	"""
	split_lines = input_string.split("\n")
	return ''.join([line.split('#')[0] for line in split_lines])