python: Fix up state tracker for sw api.
8 files changed