each unit test I'm running is writing python code out to a file, then importing it as a module.  The problem is that the code changes but further import statements don't modify the module.
I think what I need is a way to ether force a reload on a module or clear the internal bytecode cache.  Any ideas?
Thanks!
Ran into a similar situation.
Later on found that the white space indentation technique used matters.
Especially on windows platforms, ensure that a uniform technique is adapted 
throughout the module i.e., either use tab or spaces exclusively.
Is there anyway to clear python bytecode cache?