STY: Pep-8 and remove unused variables.
DOC: Redirect all stdout and stderr.