Python3 and Xapian fixes

Hi,
here is a patch to make configuration works w/ Python3 (I'm going to fix a gentoo ebuild next) and correct xapian detection via `xapian-config` CLI (which is available at least for 1.2.8 version, and I thing for even older, I didn't check)... (want to use it en ebuild as well)