updated r.text to r.content due to python-requests update