[CheckMK Web API] Set Rulesets

I know this site but I want to use it in a python script, and there i dont know how to use the set_ruleset function