Nested If In Python Program A Control