'Generate a unique ID'

def gen_id(self):

    while True:
        self.id_cnt += 1
        id = ('sect%s' % self.id_cnt)
        if (id not in self.known_ids):
            self.known_ids.add(id)
            return id
