incomplete python code with uncertainty