import log10 s = log10.Log10( log10_token="<YOUR_API_KEY_HERE>", ) res = s.sessions.create(x_log10_organization='<value>') if res.object is not None: # handle response pass