Either use a proper library like pyparsing, or just ask the system to respond in JSON
Either use a proper library like pyparsing, or just ask the system to respond in JSON