[mod] use sys.stdout.write instead of print