Some untested idea: 1. find what is the base class of wxPython 2. x= subclass from that base class 3. make wxPython.__base__ = x Don't know if this works, but this is what I would try if I were u ('cos its ease).