'Setup a new conf received from a Master arbiter.'

def setup_new_conf(self):

    conf = self.new_conf
    if (not conf):
        return
    conf = cPickle.loads(conf)
    self.new_conf = None
    self.cur_conf = conf
    self.conf = conf
    if self.aggressive_memory_management:
        free_memory()
    for arb in self.conf.arbiters:
        if ((arb.address, arb.port) == (self.host, self.port)):
            self.me = arb
            arb.is_me = (lambda x: True)
        else:
            arb.is_me = (lambda x: False)
