I am using astropy to load a FITS image and retrieve the WCS from it.
from astropy.io import fits from astropy.wcs import WCS with fits.open(\'hst_A2744_f606