dumpscript: better error messages in case of saving objects and more robust import of import_helper.py