Iterate over keys instead of over dictproxy object