fix double encoding error.  broken equality check now :(
convert cmp method to eq. python3 doesn't support cmp
add hash function to fix test_dictionaryKeyWithString
fix __cmp__ missing stuff and __hash__ wasn't getting inherited