code: def payload_register(ptype, klass, pid):
      
      cmd = ['payload-register']
      for x in [ptype, klass, pid]:
          cmd.append(x)
      subprocess.check_call(cmd)
docs: is used while a hook is running to let Juju know that a
          payload has been started.