For the fun, I've tried this
from objc_util import *
def handler(_cmd,obj1_ptr):
if obj1_ptr:
obj1 = ObjCInstance(obj1_ptr)
print(obj1) # error
return
NEHotspotConfiguration = ObjCClass('NEHotspotConfiguration').alloc()
NEHotspotConfiguration.initWithSSID_passphrase_isWEP_('my_ssid', 'my_pwd', False)
NEHotspotConfiguration.joinOnce = False
NEHotspotConfigurationManager = ObjCClass('NEHotspotConfigurationManager').sharedManager()
handler_block = ObjCBlock(handler, restype=None, argtypes=[c_void_p, c_void_p])
NEHotspotConfigurationManager.applyConfiguration_completionHandler_(NEHotspotConfiguration,handler_block)
But it gives an error
Error Domain=NEHotspotConfigurationErrorDomain Code=8 "internal error." UserInfo={NSLocalizedDescription=internal error.}
Sincerely, I can't help more