On Fri, Dec 30, 2011 at 9:51 AM, lars van gemerden <lars at rational-it.com> wrote: > I still wonder whether it might be easier to add the class to the > namespace. Can anyone help me with that? from mypackage import mymodule setattr(mymodule, myclass.__name__, myclass)