Fix LRU mode under python 2.6