Python code to drive TinyG CNC controller using json