Make Python version available as autoconf substitution
Add q3py.pc pkg-config file
Use PKG_CHECK_MODULES for libcheck