implement pickling of Classifiers