python: update to reflect latest API change
2 files changed