Replaced iteritems() with items() for python3 compatibility.
Merge pull request #3 from muhuk/master

Replaced iteritems() with items() for python3 compatibility.