Python 3 bytearray support