I created a bitcoin transaction but I'm getting an error when trying to broadcast it:
mandatory-script-verify-flag-failed (Non-canonical signature: S value is unnecessarily high) (code 16)
I googled it and seems the problem is that S value in ScriptSig is High. I didn't find a working method to convert my High-S value to Low-s value. Could someone help me with that? Any help would be appreciated and well rewarded

. Maybe there is some python script that can convert High-S value to Low.