build: improve python3 in configure.ac

* don't set minor version specificly
* use AM_CHECK_PYTHON_HEADERS for headers
* use hack from gst-python and pygobject for .so files
* remove AX_PYTHON_DEVEL