Best practice for converting bytes to str in Python 2/3 compatible code