def pickle_dump(item, out_file): with open(out_file, "wb") as opened_file: pickle.dump(item, opened_file)