Some tweaks to resolve testing problems with python 3.3's random seed in the hash function