implementation of CoDi saliency in python