Fix io for astropy v0.4 updates