fix python libpath/includepath when multiple versions are installed

related to #4617