use pkgconfig to check for python2 directly