Eliminate Python 3 incompatibility due to missing __hash__() methods

fix for #35