Hashing example in python