def write_pickle(pickle_object, pickle_name, pickle_path='/var'):
    try:
        mkdir(pickle_path)
        pickle.dump(
            pickle_object, open("%s/%s" % (pickle_path, pickle_name), "wb"))
    except:
        sys_tools.log(
            "fs_tools-error", "Unable to write %s pickle" % pickle_name)
        pass
write_pickle(pickle_object, pickle_name, pickle_path='/var')
dataset/ETHPy150Open facebook/IT-CPE/code/lib/modules/fs_tools.py/write_pickle