title: python: pretty print deeply nested braces in string (mastermind game)
body: <p>Here is a long string that is deeply nested...</p>
  
  <pre><code>{HHCAA:{00:GGEDB:{00:FFFFF,01:DFDFF:{...
  </code></pre>
  
  <p>Please see this link for the full string >>>
  <a href="https://gist.githubusercontent.com/BobGenom/7cef941fa64f977f2aa2/raw/236e89b6348d843d8c3d28c9e14e3820f14ffaa2/ppcg-mastermind-5-8" rel="nofollow noreferrer">mastermind github string</a></p>
  
  <p>This string is in relation to this original question >>> <a href="https://codegolf.stackexchange.com/questions/31926/mastermind-strategy/35296#35296?newreg=01602318b7544a0cae28524442a1ce2e">Mastermind Strategy</a></p>
  
  <p>How to pretty print the string so that we can follow through to the end and make it a lookup table... e.g. I want to find the first <code>00, 01, 02, 03 and so on...</code> </p>
  
  <p>Please see some extract below:</p>
  
  <p><code>{HHCAA:
    {00:GGEDB:{00:FFFFF,01:xxxx...}}}},
     01:DCDCB:{00:EEHFF:xxxx
     02:xxxx
     03:xxxx
  </code></p>
  
  <p>The first nested brace printed in column 1, indent it say 5 spaces for the next one, then indent again.. then come back to column 1 again.. and start indenting again, etc. or make it tabular.</p>