More Python > 3.x support

Replace {}.iteritems with .items.

This should fix issue #18
Merge pull request #19 from bh/master

More Python > 3.x support