added support for mongoengine imports in the shell with the updated code

Also I fixed an bug when doing inheritance with mongoengine the module name was erroneous.