Serializing a model and storing with the pickle module