I am trying to read the content of a text file that was redirected stdin via the command line, and send it by the Internet when the receiver has to assemble it back to it\'s
Why are you even looking at the data:
result = sys.stdin.read()