title: Remove extra nesting from dictionary
body: <p>I have this dictionary:</p>
  <pre><code>mydict = {'KEY': {'KEY': {'KEY': {'KEY': ['mylist']}}}}
  </code></pre>
  <p>Is there any pythonic way to remove the nested keys and get to the last item obtaining this:</p>
  <pre><code>{'KEY': ['mylist']}
  </code></pre>
  <p>Without having to manually go one by one through the items like:</p>
  <pre><code>def simplify_dict(d: dict) -&gt; dict:
      for k, v in d.items():
          for k1, v1 in v.items():
              for k2, v2 in v1.items():
                  for k3, v3 in v2.items():
                      return {k: v3}
  </code></pre>