Calls to items() and values() return an iterator in Python 3. This commit converts the result to a list if necessary. In some instances, using the six helpers was not necessary and has been removed. See also: https://docs.djangoproject.com/en/dev/topics/python3/#dict-and-dict-like-classes