'__recvall(bytes) -> data
Receive EXACTLY the number of bytes requested from the socket.
Blocks until the required number of bytes have been received.'

def __recvall(self, bytes):

    data = ''
    while (len(data) < bytes):
        data = (data + self.recv((bytes - len(data))))
    return data
