Python Library Caching