The Python-based sample service-location plugin was hard-coded to use Python 2.3, and now handles 2.5 as well. It should instead look for the python-config program, and use whatever is installed, with the appropriate compilation and linker options for that version.