Reset lastSegmentSent when entering PVT mode
Implement stitching test in python
Remove misleading comment
Fix knot duplication in stitching test code