Move class definition of RedirectStdStreams from pyjwkest to here.