Treat bytes as binary type on Python 3.