Index: harp-1.4/python/_harppy.py
===================================================================
--- harp-1.4.orig/python/_harppy.py
+++ harp-1.4/python/_harppy.py
@@ -36,6 +36,7 @@ import datetime
 import glob
 import numpy
 import os
+from functools import reduce
 
 try:
     from cStringIO import StringIO
@@ -271,7 +272,7 @@ class Product(object):
         return name in self._variable_dict
 
     def __repr__(self):
-        return "<Product variables=%r>" % self._variable_dict.keys()
+        return "<Product variables=%r>" % list(self._variable_dict.keys())
 
     def __str__(self):
         stream = StringIO()
@@ -452,9 +453,9 @@ def _dict_iteritems(dictionary):
     This method is Python 2 and Python 3 compatible.
     """
     try:
-        return dictionary.iteritems()
+        return iter(list(dictionary.items()))
     except AttributeError:
-        return dictionary.items()
+        return list(dictionary.items())
 
 def _get_py_dimension_type(dimension_type):
     """Return the dimension name corresponding to the specified C dimension type
