python and C codes to interpolate and reconstruct psfex images