Refactor astropy.units to use six instead of 2to3