title: tempfile.TemporaryDirectory context manager in Python 2.7
body: <p>Is there a way to create a temporary directory in a context manager with Python 2.7?</p>
  
  <pre><code>with tempfile.TemporaryDirectory() as temp_dir:
      # modify files in this dir
  
  # here the temporary diretory does not exist any more.
  </code></pre>