extract  the  tag tree  to a readable  format   ,  using  lxml +defaultdict