Use operator.itemgetter instead of anonymous function.
Remove superfluous list().