[FIX] Report: use mkdtemp and mkstemp to generate temporary files

This way we workaround some special case on windows we had with NamedTemporaryFile, like
the impossibility of reopeing a file created (and closed) by the same process.
see http://bugs.python.org/issue14243