returned failure code when storing polynomials and solutions in Python interface