Used sendall() instead of send() to make sure all bytes are sent.

When sending a large sieve script with putscript the following error occured: "Failed to read data from the server"

This was due to the fact that send() didn't sent all bytes, and this is not checked.

Fixed by using sendall() instead of send()