Modified sock.send() to support memoryview objects.

This is to fix socket._fileobject.write() method.  It was failing because _fileobject.flush() that is eventually called after the _fileobject.write() passes data to sock.sendall() as a memoryview object.