In case it is a good idea for the porting, there is a python/astropy wrapper for sextractor: https://sewpy.readthedocs.io/en/latest/ https://github.com/megalut/sewpy Not that it is really needed, but could be handy for this or other scripts.