with open(, 'wb') as f: pickle.dump(world_data, f)