COMPAT: Replaced iteritems with items.