Found an issue with using the text output of Requests, switched to using content instead.