fix for python3 compatibility

iteritems -> items