marker_cache: support getting objects back out of cache from python and putting new objects for existing keys