Send string to and from raspberry pi

No. When you get a handle on scope you'll solve this issue. I'm not going to write your code for you.