Remove viewitems() as it breaks compatibility with python<2.7

It was introduced in commit 808768c8f0d747dd9b37f0bcc414820303761563 -
adding support for Solr's JSON API.

viewitems() was backported from Python 3 items() into python 2.7, but if
we use it then python 2.6 and older will fail.