Bug fixes and wait method

Here are some changes we needed.

Our LSF seems to be giving back unicode so I had to convert to str to deal with that.

I needed a wait method.