i removed the error output from result
result = json.loads(subprocess.run(cmd, stdout=subprocess.PIPE, check=True).stdout.decode('utf-8'))
now all is working fine
result = json.loads(subprocess.run(cmd, stdout=subprocess.PIPE, check=True).stdout.decode('utf-8'))
now all is working fine