code: def index_branches(self, branches=None, start=0):
          
          ln = self.online_branches if branches is None else branches
          for i, l in enumerate(ln):
              l._i = start + i
docs: Updates the indices of all branches.
  
          @param start: Starting index, typically 0 or 1.
          @type start: int