fix py3 err with bytes