Implement infrastructure for the python module ndhist.