Add compatibility for Python 2.4 when querying the hash name. Fixes #44