why not just print() instead of all sys.stdout.write() ?