Update writemoment2.pyx

Replaced pyfits with astropy