Story #19686

Updated by Peter Amstutz 7 months ago

The python SDK method aravdos.api() should return a ThreadSafeApiCache object instead of the plain API object.    Benefits: 

 * It is threadsafe 
 * It creates a corresponding keep client object, which can be accessed by classes like Collection() that take an api client without having to manage passing an extra keep client object around. 

 Should also consider storing a global mapping of host/token->global API object so that naive usage (eg calling Collection()) doesn't create lots of extra API/keep client objects. 

 This is in response to customers running into this issue.