Use the current sys.stdout, rather than the sys.stout at the time of
import, as a default.
Merge pull request #1648 from mdboom/misc/dont-hardcode-sys-stdout

Don't hardcode sys.stdout at import time