python: make the DictImporter's unload() work in any context. import sys since sys may not be defined in whatever context the DictImporter is used.  Also reset self.installed after an unload since the same DictImporter could be used again
python: make the DictImporter's unload() work in any context.
import sys since sys may not be defined in whatever context the DictImporter
is used.  Also reset self.installed after an unload since the same DictImporter
could be used again

--HG--
extra : convert_revision : 988ed7ad8cd41b69e8fc583e618b1b4a146216da

cancro7/gem5,gem5/gem5,TUD-OS/gem5-dtu,yb-kim/gemV,Weil0ng/gem5,sobercoder/gem5,KuroeKurose/gem5,cancro7/gem5,rallylee/gem5,joerocklin/gem5,SanchayanMaity/gem5,yb-kim/gemV,Weil0ng/gem5,briancoutinho0905/2dsampling,SanchayanMaity/gem5,samueldotj/TeeRISC-Simulator,austinharris/gem5-riscv,aclifton/cpeg853-gem5,joerocklin/gem5,gem5/gem5,yb-kim/gemV,rallylee/gem5,cancro7/gem5,qizenguf/MLC-STT,kaiyuanl/gem5,aclifton/cpeg853-gem5,rjschof/gem5,rallylee/gem5,powerjg/gem5-ci-test,powerjg/gem5-ci-test,gedare/gem5,cancro7/gem5,samueldotj/TeeRISC-Simulator,TUD-OS/gem5-dtu,KuroeKurose/gem5,HwisooSo/gemV-update,yb-kim/gemV,HwisooSo/gemV-update,briancoutinho0905/2dsampling,rallylee/gem5,gedare/gem5,aclifton/cpeg853-gem5,gedare/gem5,powerjg/gem5-ci-test,markoshorro/gem5,samueldotj/TeeRISC-Simulator,sobercoder/gem5,aclifton/cpeg853-gem5,qizenguf/MLC-STT,zlfben/gem5,TUD-OS/gem5-dtu,sobercoder/gem5,sobercoder/gem5,rallylee/gem5,zlfben/gem5,qizenguf/MLC-STT,gem5/gem5,samueldotj/TeeRISC-Simulator,rjschof/gem5,briancoutinho0905/2dsampling,joerocklin/gem5,Weil0ng/gem5,HwisooSo/gemV-update,KuroeKurose/gem5,kaiyuanl/gem5,gedare/gem5,yb-kim/gemV,zlfben/gem5,powerjg/gem5-ci-test,gem5/gem5,rjschof/gem5,gedare/gem5,markoshorro/gem5,SanchayanMaity/gem5,SanchayanMaity/gem5,joerocklin/gem5,KuroeKurose/gem5,rjschof/gem5,HwisooSo/gemV-update,joerocklin/gem5,markoshorro/gem5,rjschof/gem5,TUD-OS/gem5-dtu,Weil0ng/gem5,KuroeKurose/gem5,HwisooSo/gemV-update,samueldotj/TeeRISC-Simulator,zlfben/gem5,briancoutinho0905/2dsampling,sobercoder/gem5,gedare/gem5,briancoutinho0905/2dsampling,qizenguf/MLC-STT,yb-kim/gemV,yb-kim/gemV,markoshorro/gem5,Weil0ng/gem5,austinharris/gem5-riscv,zlfben/gem5,markoshorro/gem5,SanchayanMaity/gem5,joerocklin/gem5,austinharris/gem5-riscv,austinharris/gem5-riscv,austinharris/gem5-riscv,cancro7/gem5,HwisooSo/gemV-update,powerjg/gem5-ci-test,rjschof/gem5,gem5/gem5,SanchayanMaity/gem5,aclifton/cpeg853-gem5,markoshorro/gem5,powerjg/gem5-ci-test,qizenguf/MLC-STT,zlfben/gem5,yb-kim/gemV,aclifton/cpeg853-gem5,austinharris/gem5-riscv,TUD-OS/gem5-dtu,sobercoder/gem5,kaiyuanl/gem5,TUD-OS/gem5-dtu,gem5/gem5,sobercoder/gem5,gem5/gem5,samueldotj/TeeRISC-Simulator,qizenguf/MLC-STT,kaiyuanl/gem5,austinharris/gem5-riscv,aclifton/cpeg853-gem5,rjschof/gem5,joerocklin/gem5,qizenguf/MLC-STT,SanchayanMaity/gem5,Weil0ng/gem5,kaiyuanl/gem5,HwisooSo/gemV-update,gedare/gem5,cancro7/gem5,zlfben/gem5,briancoutinho0905/2dsampling,samueldotj/TeeRISC-Simulator,rallylee/gem5,kaiyuanl/gem5,kaiyuanl/gem5,TUD-OS/gem5-dtu,KuroeKurose/gem5,rallylee/gem5,KuroeKurose/gem5,briancoutinho0905/2dsampling,cancro7/gem5,powerjg/gem5-ci-test,markoshorro/gem5,Weil0ng/gem5,joerocklin/gem5