A tool for the representation and fitting of piecewise polynomials in python.