def _writen(fd, data):
 while data:
  n = os.write(fd, data)
  data = data[n:]

def _writen ( fd , data ) : while data : n = os . write ( fd , data ) data = data [ n : ]
write all the data to a descriptor .