Use tempfile.TemporaryDirectory in imprt.py