python is only linked in statically, if no shared library can be found. Here, however, seems that it was properly linked with the shared library, just that the name that the libPyROOT.so has in its needed section is with full version number (which is usually exactly what one wants, because there may be subtle API changes, although there are none that I’m aware of between p2.3 and p2.4).
Recompiling will help, or downloading a later version of ROOT, since newer versions have been build against p2.4.2 (you probably have p2.4.3, but that’ll work fine).