Speed-up of testing phase and make it compatible with Python2.4 to be able to build on SLC5