Apologies for coming back to this again - but are you saying that passing --with-python=python2 to configure does not work? Else we should just do that: if python2 exists then we pass --with-python=python2 to configure.