moved writer to io/fits.py