Finish replacing commented boost::python and boost::numpy code with direct C API calls.