As soon as you edit an image with iPhoto and export it again, iPhoto messes with the EXIF data. Afterwards, there are suddenly invalid tags and type codes in there, which EXIF.py (which I use to read the EXIF data) complains about. Stupid idea.