[WIP] Make hashdist work for Python 2.6

I'll use this PR to make hashdist work for Python 2.6.