Constify arguments that are not modified (and shouldn't be) both in the library and the python C interface.