getting ready the python code with uncertainty