How To Use Hash Function In Python