Sorting a list of lists of dictionaries in python,key = lambda x: sum(y['play'] for y in x)