Added persistent_dict.py from ActiveState recipe 576642
Replace shelve by PersistentDict
Update cache.db