Extract tuple with the largest item from sublist of tuples
===

Using the great answer I found  from http://stackoverflow.com/questions/8092877/split-a-list-of-tuples-into-sub-lists-of-the-same-tuple-field I was able to get the results split into a group of sublists.  However, my diffuclty now is trying to extract the tuple from each sublist that contains the highest value item.  I tried the following:

    import glob, os, itertools, operator  
    dirtup = []
    for f in glob.glob('P:\Office*\Technical*\Bureau*\T*\*\YR2*\R*\*\*.pdf'):
    fpath, fname = os.path.split(f)
    fyr = fpath[91:95]
    vcs = 'Volume'
    rname, extname = os.path.splitext(fname)
    rcid = fname[0:7]
    dirtup.append ((f, fyr, rcid, vcs))
    dirtup2 = sorted(dirtup, key=operator.itemgetter(2))
    for key, group in itertools.groupby(dirtup2, operator.itemgetter(2)):
    maxval = max(x[1] for x in dirtup2)
    print [x for x in dirtup2 if x[1] == maxval] 
 
This returns only the tuple that match the max of fyr rather then the max of fyr per each sublist.  I'm still new to python but I can't seem to figre out how would I iterate through the sublists?  Thanks in advance.