Import quantity_input from astropy if it exists.