Bring the C and Python compute_hash functions into consistency
Merge pull request #670 from Rosuav/stringhash

Bring the C and Python compute_hash functions into consistency