Py3 fix - .items is not a list.