I\'ve got a structure of the form:
>>> items [([[0, 1], [2, 20]], \'zz\', \'\'), ([[1, 3], [5, 29], [50, 500]], \'a\', \'b\')]
The
The index of the max of a list:
def argmax(lst): return lst.index(max(lst))
If there are duplicate max values in lst, this will return the index of the first maximum value found.