title: Create a list from a dictioanary
body: <p>I have a dictionary</p>
  
  <pre><code>{'about': {'advertise.html': True, 'staff.html': True, 'vacancy.html': True},
   'articles': {'2017': {'12': {'19': {'900588.html': True}}}},
   'columns': {'2016': {'8': {'5': {'825413.html': True}}},
               '2017': {'9': {'8': {'886260.html': True}}}},
   'culture': {'2012': {'8': {'28': {'595498.html': True}}}},
   'economy': {'2013': {'5': {'23': {'633905.html': True}}},
               '2017': {'12': {'22': {'900782.html': True}}},
               '2018': {'7': {'27': {'934361.html': True},
                              '28': {"1111111.html"}}}},
   'hournews': True
   }
  </code></pre>
  
  <p>It is necessary to write down all the paths on the list.
  In this example, it should be like this:</p>
  
  <pre><code>["about","advertise.html"]
  ["about","staff.html"]
  ["about", ,"vacancy.html"]
  ["articles","2017","12","19","900588.html"]
  ["columns","2016","8","5","825413.html"]
  ["columns","2017","9","8","886260.html"]
  ["culture","2012","8","28","595498.html"]
  ["hournews"]
  </code></pre>
  
  <p>How can I do that?</p>
  
  <p>my code:</p>
  
  <pre><code>def get_node(path,tree):
      for name,val in tree.items():
          if type(val) == dict:
              path.append(name)
              get_node(path,val)
              path = path[:-1]
      else:
          print(path)
  get_node([],tree)
  </code></pre>
  
  <p>it returns me something like this </p>
  
  <pre><code>['redir', '?source=vz_hour_news', 'news', '2018', '7', 'economy', '2018', '7', 'politics', '2018', '7', 'society', '2018', '7', 'world', '2018', '7', 'incidents', '2018', '6', 'opinions', '2018', '7', 'video', '2018', '6', 'photo', '2018', '7', 'vote', 'sport', '2018', '7', 'columns', '2017', '9', 'culture', '2012', '8', 'articles', '2017', '12']
  </code></pre>
  
  <p>but must return </p>
  
  <pre><code>["redir","?source=vz_hour_news","&amp;id=934685","&amp;vzurl=news/2018/7/29/934685.html"]
  ["redir","?source=vz_index_author", "&amp;id=934134", "'&amp;vzurl=opinions/2018/7/25/934134.html"]
  </code></pre>