Python Hashing Algorithm Introduction