Python Use Variable In Nested Ifs In Google