import csv


def read_base_maps(base_maps):
	"""
	Read all base map files and create a base map
	:param base_maps: list of filenames
	:return: a list like [("/bucket", "Server 1")]
	"""
	results = []
	for filename in base_maps or []:
		with open(filename, 'r') as file:
			reader = csv.reader(file)
			for row in reader:
				if len(row) == 0:
					continue
				if len(row) != 2:
					raise ValueError(f"Read basemap row {row} has length {len(row)} (should be 2)")
				results.append((row[0], row[1]))
	return results