Which program is pickling and why? That seems like a very strange thing to do in this situation. The only time to pickle something is if you need to represent a non-string object on disk, but Python ...
Under Visual Studio (not the Visual Studio Code) sys.stdin.read() doesn't work so well. I am proposing adding a function called "get_input" that selects the input method based on the platform it is ...