Thanks, I'll look at the customization api!
Suppose I have a schema m.xsd and I use it to generate m.py. m provides a complexType abc, and so in code I can write x = m.abc() Now I would like to add a method named splunge so that I can call it like this s = x.splunge() The only thing I can come up with (described below) is clearly not the right approach: I can do this if I generate with --write-for-customization and then put something like this in the top level generated file, import raw.something as m def splunge(self): return "splunge!" setattr(...