flag_a is not a very descriptive name.  I understand it has to do with whether we are currently playing a sound in random sequence, which sounds more like what 'self.playing_sounds_in_random_sequence' would be for.