https://github.com/CheckPointSW/cp_mgmt_api_python_sdk/blob/5db24fe8b5db2605daf8028e6780604751012eb2/cpapi/mgmt_api.py#L258 missing double dashes for the domain flag for the external call to mgmt_api. arguments need to be either -d domainname or --domain domainname.