astropy.units
Convert between pixel distances (in units of pix) and other units, given a particular pixscale.
pix
pixscale
Quantity
The pixel scale either in units of <unit>/pixel or pixel/<unit>.