scipy.signal.
bspline
B-spline basis function of order n.
Notes
Uses numpy.piecewise and automatic function-generator.