BUG: fix Package hashing in python 3.