unhexlify txid into a buffer-compatible object

fixes #59
Merge pull request #60 from kanzure/str-buffer-error

Improve unhexlify call in blocks.py