Non-working commit to fix issue with dynamic import.

The dynamic importing of modules (line 108) seems to be working fine, but then I can't use the module to instantiate a class. Looking for help on this one.