python: Update python state tracker and samples for recent interface changes.