I\'m redirecting the stdout and stderr streams from a Python script to a file. Before redirecting, I was using the tqdm progress bar in my script which continually updates t