substantially enhances c++ and python interfaces