text: import json
  import os
  
  with open('config.json', "r") as f:
          data = json.load(f)
          projectID = data["project-id"]
          deviceID = data["device-id"]
          cloudRegion = data["cloud-region"]
          registryID = data["registry-id"]
          privateKey = data["private-key"]
  f.close()
  
  with open('initialRegistration.json', "r") as f:
          data = json.load(f)
          registrationDeviceID = data["device-id"]
          registrationPrivateKey = data["private-key"]
  f.close()
  
  cmd = "export GOOGLE_CLOUD_PROJECT=%s"%(projectID)
  print(cmd)
  os.system(cmd)
  
  cmd = "python3 selfRegister.py --algorithm ES256 --ca_certs roots.pem --private_key_file '%s' --mqtt_bridge_port 443 --cloud_region %s --project_id %s --device_id %s --registry_id %s --registration_key_file '%s' --registration_device_id %s"%(privateKey,cloudRegion,projectID,deviceID,registryID,registrationPrivateKey,registrationDeviceID)
  print(cmd)
  os.system(cmd)
  