def load(self, fname):
    if (sys.version_info[0] == 3):
        fname = (fname + '.3')
    d = marshal.load(open(fname, 'rb'))
    self.total = d['total']
    self.d = {}
    for (k, v) in d['d'].items():
        self.d[k] = AddOneProb()
        self.d[k].__dict__ = v
def load(self, fname):
    if (sys.version_info[0] == 3):
        fname = (fname + '.3')
    d = marshal.load(open(fname, 'rb'))
    self.total = d['total']
    self.d = {}
    for (k, v) in d['d'].items():
        self.d[k] = AddOneProb()
        self.d[k].__dict__ = v