Pickle adapter class for saving arbitrary callables