Since it seems like you’re getting a variety of not directly helpful
answers:
sys.exit() really just gets a small int out as the “return code” of
the whole programme. Handy for success (0) or failure (nonzero) but
you don’t get to send detailed data this way.
If you want to emit detailed data, the correct way is to write it out,
either to the programme output or into a file. The shell script has to
read that output or the file to make use of the data.