Return a B-Spline given some coefficients.

def _basis_spline_factory(coef, degree, knots, der, ext):
        """Return a B-Spline given some coefficients."""
        return functools.partial(interpolate.splev, tck=(knots, coef, degree), der=der, ext=ext)