Further fixes hashing on Python 3