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 think for even older, I didn't check)... (want to use it in ebuild as well)