resp.content is non-str type in py3