Add compatibility functions to iterate over dict contents as discussed in #133.
Merge pull request #134 from eriknw/dict_iter

Add compatibility functions to iterate over dict contents as discussed in #133.