def clean_data(dict):
	"""Method that returns a dictionary of the format:
		dict = {'Movie1':{'character1':time1, 'character2':time2, ...},
				'Movie2':{..., ...},
				...}"""
	# Initialization of the index dict
	character_movie_time = {}
	# Parsing through data scraped for each movie
	for movie in dict.keys():
		# Parsing through each character in in the movie
		for item in dict[movie]:
			character = item.split('<')[0].strip()
			time = item.split('<')[1].split('>')[0].strip()
			# Adding time for each character to for each movie to the index dict
			if movie in character_movie_time.keys():
				character_movie_time[movie][character] = time
			else:
				character_movie_time[movie] = {character: time}
	# Returning the index dict
	return character_movie_time