Using If Else statements with python in GIS Pro