In the meanwhile I tried to use the classical os.execute()
success, exit_kind, exit_code = os.execute(cmd)
print(success, exit_kind, exit_code)
It works in getting the exit code.
I also need to capture stderr from the executed subprocess but I did so using a redirection in the command string and reading back the logged file.