Moved rqueue and wqueue to the Client class. Stop using encode and decode, breaks Python3 compatibility