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

`iteritems = operator.methodcaller("iteritems")` was used instead of `iteritems = dict.iteritems` to allow maximum compatibility with any dict-like object that supports the mapping protocol.  The former is also *slightly* faster for me in Python 2 (Python 3 and pypy were not benchmarked).