iteritems() is python 2.x ;) simple items() is a proper generator