so I do this in my script:
import json info = json.loads(get_info()) print info
Which outputs:
richard@richard-desktop:~/projec
Try
from StringIO import StringIO io = StringIO(get_info()) json.load(io)