encode info to bytes to be py3 compatible
v0.4.1