adding --debug option to import/export scripts to provide error tracebacks