title: Using tempfile to create a sub-directory for all of my tempfiles
body: <p>I've been using <code>tempfile.mkdtemp</code> with a prefix to create my temp files. This results in a lot of different directory in my tmp folder with '<code>tmp/myprefix{uniq-string}/</code>'. </p>
  
  <p>I would like to change this and have a subdirectory so that my the temp folders I create are all under one main directory so that the prefix is actually a subfolder of <code>tmp</code> '<code>tmp/myprefix/{uniq-string}/</code>'. </p>
  
  <p>Also, I don't want to override <code>tempfile</code>'s system for defining a default tmp directory. </p>
  
  <p>I tried playing with the '<code>prefix</code>' and '<code>dir</code>' parameters but with no success.</p>