oohandler: use mkstemp for generating temporary output filename. 
1) recommanded by python doc
2) it returns an absolute path which avoid any current working directory problem.