Oh I've just check the python doc http://docs.python.org/3.4/library/struct.html

Actually we do need a `bytes` object here instead of `string`. So I guess the correct thing to do is to revert to the original version, and always feed `bytes` instead of `str` to `bytes2value`