Development and reference C++ and Python code for working with B-splines