Drop all the calls to .keys() when iterating on the keys of a dict