Change back the normal stdout after the end

def stop(cls):
        """Change back the normal stdout after the end"""
        if any(cls.streams):
            sys.stdout = cls.streams.pop(-1)
        else:
            sys.stdout = sys.__stdout__