renamer.py remove cursor code

We actually don't use the cursor in this sample. The lambdas still demonstrate that the callbacks are called only on state transition.