doc: revisions to gesture.py