Python Use Variable In Nested If In Excel