python3 compatibility
allow both iteritems as well as items