Python Simple Hash Functions Based