python: uncertainties fixes