Updates for ST3

I had to make a few changes to get it to run on ST3. The EOF checks return a null string, not a zero char now. And string.strip(s) is gone, need to use s.strip().