adding iteritems() method to TemplateEditor