Modified thash.py to work with new THash iterator and  __getitem__