Hashing And Hash Function In Python