Fix iteritems compat' with py3 in adapter module