Re-write of the dust map routine to use astropy and to log properly