Fixed compatibility with Apache mod_wsgi
viewitems() => iteritems()