This will export a set of FITS images of either the fields specified or all the fields already in the object. The output filenames are filename_prefix plus an underscore plus the name of the field. If clobber is set to True, this will overwrite any existing FITS file.
This requires the pyfits module, which is a standalone module provided by STSci to interface with FITS-format files.