Rename python tempfile
<p>What is the way  to rename the following tempfile</p>

<pre><code>pdf = render_me_some_pdf() #PDF RENDER
f = tempfile.NamedTemporaryFile()
f.write(pdf)
f.flush()
</code></pre>

<p>I read somethings about os.rename but I don't really now how to apply it</p>
