result.append('modified', cur_col, cur_row)

should be

     result.append(('modified', cur_col, cur_row))

(`append()` takes one argument and we want it to be a tuple)