Fixed bug and simplified code for when running tests with Python 2.4.
Fixed bug and simplified code for when running tests with Python 2.4.

ghutchis/cclib,ben-albrecht/cclib,cclib/cclib,langner/cclib,ATenderholt/cclib,gaursagar/cclib,andersx/cclib,cclib/cclib,berquist/cclib,cclib/cclib,andersx/cclib,jchodera/cclib,gaursagar/cclib,Schamnad/cclib,Schamnad/cclib,langner/cclib,berquist/cclib,berquist/cclib,Clyde-fare/cclib,ghutchis/cclib,ATenderholt/cclib,Clyde-fare/cclib,jchodera/cclib,langner/cclib,ben-albrecht/cclib