<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def flip_whole(self, tour):
 """ Test flipping all contigs at the same time to see if score improves. """

        score, = self.evaluate_tour_Q(tour)
        self.signs = -self.signs
        score_flipped, = self.evaluate_tour_Q(tour)
        if score_flipped > score:
            tag = ACCEPT
        else:
            self.signs = -self.signs
            tag = REJECT
        self.flip_log("FLIPWHOLE", score, score_flipped, tag)
        return tag