def items(self):
    'supports dict-like items() access'
    items = []
    for item in self.contents:
        items.append((item, self.contents[item]))
    return items
supports dict-like items() access
def items(self):
    
    items = []
    for item in self.contents:
        items.append((item, self.contents[item]))
    return items