After AM_PATH_PYTHON, use PKG_CHECK_MODULES to find matching headers.
bindings: Tidy enums.py and fix to work with Python 3.
python: Fix C++/Python string conversions on Python 3.