in-memory caching module for python