Hash Function Example In Python