Bug fix on another edge case
sendall instead of send (following https://synack.me/blog/using-python-tcp-sockets)