Py3 fix: need to decode response before testing string