Python 3: use {}.items() instead of .iteritems()