ugh print always includes a space or newline, sys.stdout.write instead