Python3 changes - byte array to string conversion