title: Python parsing bracketed blocks
body: <p>What would be the best way in Python to parse out chunks of text contained in matching brackets?</p>
  
  <pre><code>"{ { a } { b } { { { c } } } }"
  </code></pre>
  
  <p>should initially return:</p>
  
  <pre><code>[ "{ a } { b } { { { c } } }" ]
  </code></pre>
  
  <p>putting that as an input should return:</p>
  
  <pre><code>[ "a", "b", "{ { c } }" ]
  </code></pre>
  
  <p>which should return:</p>
  
  <pre><code>[ "{ c }" ]
  
  [ "c" ]
  
  []
  </code></pre>