Stop writing to sys.stdout

 * Printing to stdout was messing up hadoop streaming jobs.
 * There also appears to be no reason to re-assign sys.stdout and sys.stdin