def step(self, model):
        neighbors_opinion = Counter(n.get_state() \
                            for n in model.grid.neighbor_iter((self._col, self._row), True))
        polled_opinions = neighbors_opinion.most_common()  #a tuple (attribute, occurrences)
        tied_opinions = []
        for neighbor in polled_opinions:
            if neighbor[1] == polled_opinions[0][1]:
                tied_opinions.append(neighbor)

        self._next_state = random.choice(tied_opinions)[0]


    # model argument is unused
Get an item from the requeue.
dataset/ETHPy150Open projectmesa/mesa/examples/ColorPatches/color_cell.py/ColorCell.step--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/tools/requeue.py/ReQueue.get