Simple LRU cache in Python