tracks = {'Harry Patch (In Memory Of)': {'playlist1': 4.0},
    'Fake Plastic Trees': {'playlist2': 5.0, 'playlist1': 6.0},
    'The Man Who Sold The World': {'playlist1': 3.0},
    'Running Up That Hill': {'playlist1': 2.0}, "Jeep's Blues": {
    'playlist3': 1.0, 'playlist4': 9.0}, 'Stella By Starlight': {
    'playlist3': 1.0}, 'Codex': {'playlist1': 3.0}}

def get_top_track(tracks):
    ranks = {}
for key, val in list(tracks.items()):
    if len(val) >= 2:
        total = sum(el for el in list(val.values()))
ranks[key] = total
return max(ranks, key=lambda key: ranks[key])
print(get_top_track(tracks))
Python - Find Top item in dictionary