code: def get_last_filled_cell(self, table=None):
          
  
          maxrow = 0
          maxcol = 0
  
          for row, col, tab in self.dict_grid:
              if table is None or tab == table:
                  maxrow = max(row, maxrow)
                  maxcol = max(col, maxcol)
  
          return maxrow, maxcol, table
docs: Returns key for the bottommost rightmost cell with content
  
          Parameters
          ----------
          table: Integer, defaults to None
          \tLimit search to this table