Adding pickle setter for parameters class