Python Use Variable In Nested Knowledge