Use operator.itemgetter where possible.