xapian: fix python bindings with system Python

Fixes #33082.