Fix python example in Data API window

Fixes #2046