You can also use .itervalues() here, to avoid building a list, but it is probably an insignificant gain