output = dict(zip(year, file_contents_values_grouped_by_year))
for NameRank in list(output.values()):
    NameRank.sort(key=lambda x: int(x.split()[1]))
pprint.pprint(output)
Parsing, Aggregating & Sorting text file in Python