Changed r.content to r.text