code: def attrfindrows(self, groupname, attrname, value):
          
          values = self.attrgetcol(groupname, attrname)
          return [i for i in range(len(values)) if values[i] == value]
docs: Get the row numbers of all rows where the attribute matches the given value.