Python Code For Nested If In Excel