class ProperObject(object):
    """A proper class definition for each "attr" dictionary."""

def __init__(self, path, attrDict):
    self.path = path
self.__dict__.update(attrDict)

def __str__(self):
    return 'path %r, entity %r, hash %r, id %r' % (self.path, self.entity,
        self.hash, self.id)
masterDict = {}

def builder(path, element):
    masterDict[path] = ProperObject(path, element)
walkDict(myDict, builder)
for k, v in list(masterDict.items()):
    if v.id == '4130-2-2':
        pass
Как это сделать - обход словаря Python и поиск