BioSimSpace._Utils.
stdout_redirected
Redirect stdout to a file.
to (str) – The file to which stdout will be redirected.