pygame uses libjpeg which is the reference implementation for jpeg loading.
I guess you could preprocess the files and make some fixes. It seems Lenard has already debugged some of the files for you... so it should be fairly easy to make the fixes in python, then pass to pygame (eg removing those two bytes).