Implement Lru Cache Python