Avoid double copy of data in registry
Fixed _importtestmodule for Python 2.6