[tools, script] Don't deprecate stderr just yet, since it's used quite a bit. Also replace use of stdout in main script