LRU Cache written in Python