Removed io.StringIO

Parse directly the returned text, rather than encapsulating it in a
file object with io.StringIO.