Get rid of stdout.write