Removed unused import tempfile.