Python Use Variable In Nested Ifs Excel