'Only the first agent indicates when the episode is done.'

def episode_done(self):

    if (self.acts[0] is not None):
        return self.acts[0].get('episode_done', False)
    else:
        return False
