Hashing Function In Python Example