Add some debug for finding the Python library
(cherry picked from commit 6c1b2eebba5c9ce982c3c55702f0eb42ab4fd556)