How to calculate R,S,Z for bitcoin raw transaction with many inputs and outputs?

Good day.

Can someone help with the python scrypt or method ?

Big thank you !!!