old_contents: #!/usr/bin/env python2.7
  
  import sys
  import time
  import c4r  # Lib to send and receive commands
  
  try:
      import RPi.GPIO as GPIO  # pylint: disable=F0401
  
      gpio_loaded = True
  except Exception as e:
      print 'Warning! No RPi.GPIO loaded!'
      gpio_loaded = False
  
  # load w1 modules
  c4r.modprobe('w1-gpio')
  c4r.modprobe('w1-therm')
  
  
  # Put your API key here. To get a token, register at https://cloud4rpi.io
  API_KEY = 'a5751fc6-0ed0-4e77-ba40-b2a410b15e26'
  c4r.set_api_key(API_KEY)
  
  cpu = c4r.find_cpu()
  ds_sensors = c4r.find_ds_sensors()
  print 'SENSORS FOUND ', ds_sensors
  
  
  def bind_sensor(sensors, index):
      if sensors is not None and len(sensors) > index:
          return sensors[index]
      return None
  
  
  led_pin = 12
  if gpio_loaded:
      GPIO.setmode(GPIO.BOARD)
      GPIO.setup(led_pin, GPIO.OUT)
  
  
  def led_control(value=None):
      GPIO.output(led_pin, value)
      return GPIO.input(led_pin)
  
  
  # Put required variable declaration here
  Variables = {
      # 'CurrentTemp_1': {
      #     'type': 'numeric',
      #     'bind': bind_sensor(ds_sensors, 0)
      # },
      #
      # 'CurrentTemp_2': {
      #     'type': 'numeric',
      #     'bind': bind_sensor(ds_sensors, 1)
      # },
      #
      'LEDOn': {
          'type': 'bool',
          'value': False,
          'bind': led_control
      },
  
      'CPU': {
          'type': 'numeric',
          'bind': cpu
      }
  }
  
  
  def main():
      c4r.start_message_broker_listen()
      c4r.register(variables=Variables)  # Send variable declarations to server
      try:
          while True:
              c4r.read_persistent(Variables)  # Reads values from persistent memory, sensors
              c4r.read_system(Variables)  # Reads CPU temperature
  
              c4r.send_receive(Variables)
  
              time.sleep(10)
  
      except KeyboardInterrupt:
          print 'Keyboard interrupt received. Stopping...'
          c4r.finalize()
          sys.exit(0)
      except Exception as e:
          error = c4r.get_error_message(e)
          print "error", error, sys.exc_info()[0]
          c4r.finalize()
          raise
  
  
  if __name__ == '__main__':
      main()
  
new_contents: #!/usr/bin/env python2.7
  
  import sys
  import time
  import c4r  # Lib to send and receive commands
  
  try:
      import RPi.GPIO as GPIO  # pylint: disable=F0401
  
      gpio_loaded = True
  except Exception as e:
      print 'Warning! No RPi.GPIO loaded!'
      gpio_loaded = False
  
  # load w1 modules
  c4r.modprobe('w1-gpio')
  c4r.modprobe('w1-therm')
  
  
  # Put your API key here. To get a token, register at https://cloud4rpi.io
  API_KEY = 'YOUR_ACCESS_TOKEN'
  c4r.set_api_key(API_KEY)
  
  cpu = c4r.find_cpu()
  ds_sensors = c4r.find_ds_sensors()
  print 'SENSORS FOUND ', ds_sensors
  
  
  def bind_sensor(sensors, index):
      if sensors is not None and len(sensors) > index:
          return sensors[index]
      return None
  
  
  led_pin = 12
  if gpio_loaded:
      GPIO.setmode(GPIO.BOARD)
      GPIO.setup(led_pin, GPIO.OUT)
  
  
  def led_control(value=None):
      GPIO.output(led_pin, value)
      return GPIO.input(led_pin)
  
  
  # Put required variable declaration here
  Variables = {
      # 'CurrentTemp_1': {
      #     'type': 'numeric',
      #     'bind': bind_sensor(ds_sensors, 0)
      # },
      #
      # 'CurrentTemp_2': {
      #     'type': 'numeric',
      #     'bind': bind_sensor(ds_sensors, 1)
      # },
      #
      'LEDOn': {
          'type': 'bool',
          'value': False,
          'bind': led_control
      },
  
      'CPU': {
          'type': 'numeric',
          'bind': cpu
      }
  }
  
  
  def main():
      c4r.start_message_broker_listen()
      c4r.register(variables=Variables)  # Send variable declarations to server
      try:
          while True:
              c4r.read_persistent(Variables)  # Reads values from persistent memory, sensors
              c4r.read_system(Variables)  # Reads CPU temperature
  
              c4r.send_receive(Variables)
  
              time.sleep(10)
  
      except KeyboardInterrupt:
          print 'Keyboard interrupt received. Stopping...'
          c4r.finalize()
          sys.exit(0)
      except Exception as e:
          error = c4r.get_error_message(e)
          print "error", error, sys.exc_info()[0]
          c4r.finalize()
          raise
  
  
  if __name__ == '__main__':
      main()
  
subject: add blank_token text to replace