Updated code to be compliant with uncertainties 2.0.

uncertainties >= 2.0.0 is not a required dependency.