'Return an iterator over (key, message) tuples.'

def iteritems(self):

    for key in self.iterkeys():
        try:
            value = self[key]
        except KeyError:
            continue
        (yield (key, value))
