Have astropy import check for scipy.optimize specifically.  #525