Improve unhexlify call in blocks.py

This fixes a bug in blocks.py where a str object is returned instead of an object that supports the buffer interface. See #59 for more details.