Change default module in def_*_class
The current default is to generate constraint and function classes in the main namespace. This should be changed such that classes are generated in the current namespace and thus be available without further qualifications in the module in which they are defined.