Set serializer to pickle.