title: Python: Output list of folders in given path
body: <p>Given:</p>
  
  <pre><code>/some/path/to/a/certain unspecified/folder/
  </code></pre>
  
  <p>I need a list:</p>
  
  <pre><code>var = some, path, to, a, "certain unspecified", folder
  </code></pre>
  
  <p>I suspect <code>os.walk(dir)</code> might have something to do with it, but I can't seem to make this work... </p>
  
  <p>Sorry I'm fairly new to Python.</p>