replacing hash() with md5 from hash lib
cleaned up the import
updated docstrings
using sha1 instead of md5
Merge pull request #169 from bastianh/hash

Replacing hash() with sha1 from hashlib to avoid hash randomization in Py3.