Removing superfluous .keys() calls

I only learned recently that .keys() is totally superfluous and wasteful for dictionary access and iteration since it generates a whole new list of the dictionary keys. 
See http://stackoverflow.com/a/14731156/1864479