def stitchModules(module, fallbackModule):
for name, attr in fallbackModule.__dict__.items():<EOL><INDENT>if name not in module.__dict__:<EOL><INDENT>module.__dict__[name] = attr<EOL><DEDENT><DEDENT>
complete missing attributes with those in fallbackModule

imagine you have 2 modules: a and b
a is some kind of an individualised module of b - but will maybe
not contain all attributes of b.
in this case a should use the attributes from b

>>> a.var1 = 'individual 1'

# what we now want is to all all missing attributes from b to a:

>>> stitchModules(a,b)

>>> print a.var1
individual 1
>>> print a.var2
standard 2