import csv


def parse_clan_info(file_path):
	"""
	Returns
		clan_code: {
			clan_name: <string>,
			members: {
				member_id: {
					member_name: <string>
				},
				...
			}
		}
	"""
	with open(file_path) as clan_quest_info_file: #File should be a csv
		clan_info_data = csv.reader(clan_quest_info_file, delimiter=',')

		#skip cq line and header
		next(clan_info_data)
		next(clan_info_data)

		clan_code = "gg8e6"
		clan_name = "Mistborns"

		member_dictionary = {}

		for member in clan_info_data:
			member_dictionary[member[2]] = {
				"member_name": member[1].replace("<MST>", "").strip(),
			}

		clan_info = {
			clan_code: {
				"clan_name": clan_name,
				"members": member_dictionary
			}
		}

		return clan_info