'Return the key/value pairs as a standard dictionary.'

def get_dictionary(self, _open_func=open):

    try:
        fd = _open_func(self.path, 'rb')
    except IOError:
        res = {}
    else:
        try:
            res = cPickle.load(fd)
        finally:
            fd.close()
    return res
