Modification to these script to use astropy v0.3