Solved by ptrblck in post #2 
              
              
                Yes, you can reassign modules as seen in your code snippet. You would have to change the attribute names of course to valid ones and you could use copy.deecopy for safe_copy_way.