Python adapter for BaseX REST services