use items() not iteritems in CBV for py3k compatability