ENH Helper to pickle sampler