[Fix] Report: use tempfile.NamedTemporaryFile with the delete=False param