code: def expandDescendants(self, branches):
          
          return sum([b.descendants() for b in branches], []) + \
              [b.source for b in branches]
docs: Expand descendants from list of branches
  
          :param list branches: list of immediate children as TreeOfContents objs
          :return: list of all descendants