skip> You can achieve these sorts of effects by assigning an object to
skip> sys.modules[modulename].
I forgot you should always be able to assign to the module's __dict__
attribute as well:
>>> import os
>>> os.__dict__['foo'] = 'a'
>>> os.foo
'a'
S