from backend import handle_cell, after_tick_finished def execute_tick(model): n, m = model.shape for i in range(n): for j in range(m): handle_cell(model, i, j) after_tick_finished(model)