docs: def scrambleTriples(expnums,ccd):
      """Pull the three images and then scramble the MJD-OBS keywords"""
      import pyfits, MOPfits
      mjd=[]
      fid=[]
      fs=[]
      filenames=[]
      for expnum in expnums:
          if int(ccd)<18:
              cutout="[-*,-*]"
          else:
              cutout="[*,*]"
          filenames.append(MOPfits.adGet(str(expnum)+opt.raw,extno=int(ccd),cutout=cutout))
  	fs.append(pyfits.open(filenames[-1]))
  	mjd.append(fs[-1][0].header.get("MJD-OBS"))
  	fid.append(fs[-1][0].header.get("EXPNUM"))
  
      if not os.access('weight.fits',os.F_OK):
          os.symlink(MOPfits.adGet("weight",extno=int(ccd),cutout=cutout),'weight.fits')
  
      for filename in filenames:
          if not os.access(filename,os.R_OK):
              sys.stderr.write("Ad Get Failed\n")
              raise TaskError, 'adGet Failed'
  	    
      order=[2,0,1]
      basenames=[]
      for i in range(len(fs)):
         fs[i][0].header.update("MJD-OBS",mjd[order[i]]);
         fs[i][0].header.update("EXPNUM",fid[order[i]]);
         filename=filenames[order[i]].replace(opt.raw,'s')
         basenames.append(os.path.splitext(filename)[0])
         if os.access(filename,os.F_OK):
            os.unlink(filename)
         fs[i][0].writeto(filename,output_verify='ignore')
         os.unlink(filenames[order[i]])
  
      return basenames