somehow I think StringIO(result.text) will work