Fix missing tempfile import