Talkcoin hashing algorithm for python.