def close(self):
        for name, brain in self.brains.items():
            brain['fwd'].close()
            brain['rev'].close()
Make sure our brains are closed so they save their contents.
dataset/ETHPy150Open capnrefsmmat/seuss/rhyme.py/RhymingMarkovGenerator.close