fixes #148 + test case
Merge pull request #163 from reaperhulk/fix-bug-148

Return proper string type from hexdigest in py2/3