jpi:covariance update compatible with python