Is `astropy` used? Best would be to make this piece of code depend only on truly standard packages