st/python: Adapt to interface change.