for cell_entry in cells.entry:
    row = int(cell_entry.cell.row) - 2
col = int(cell_entry.cell.col)
if 0 <= row < len(events_map):
    cell_entry.cell.inputValue = rows_map[row][col]
else:
    cell_entry.cell.inputValue = ''
batch_request.AddUpdate(cell_entry)
Add multiple rows into google spreadsheet using API