def write(self, f, s):
        if os.path.exists(f):
            logging.info("Overwriting %s." % f)
        else:
            logging.info("Creating %s." % f)
        fp = open(f, "w")
        pickle.dump(s, fp)
        fp.close()
Write method.
dataset/ETHPy150Open magsol/pybot/pybot/storage.py/PickleStorage.write