Overwriting ```sys.stdout``` and ```sys.stderr``` is not sufficient. (e.g. the logger still uses the old file descriptors)