Fix some incompatibility with Python 2.5 introduced in 05d4cf6d (r2255 in SVN)

git-svn-id: http://svn6.assembla.com/svn/pyfits/trunk@2266 ed100bfc-0583-0410-97f2-c26b58777a21