diff --git a/glib/glib.py b/glib/glib.py
index f7fe22b..38f101a 100644
--- a/glib/glib.py
+++ b/glib/glib.py
@@ -67,6 +67,8 @@ class GListPrinter:
             self.count = self.count + 1
             return ('[%d]' % count, data)
 
+        __next__ = next
+
     def __init__ (self, val, listtype):
         self.val = val
         self.listtype = listtype
@@ -121,6 +123,8 @@ class GHashPrinter:
                     return ('[%dk]'% (self.pos), key)
             raise StopIteration
 
+        __next__ = next
+
     def __init__ (self, val):
         self.val = val
         self.keys_are_strings = False
