'Write the given bytes to the response body.
@param bytes: The bytes to write.  If this is longer than 640k, it
will be split up into smaller pieces.'

def write(self, bytes):

    start = 0
    end = SIZE_LIMIT
    while True:
        self._write(bytes[start:end])
        start += SIZE_LIMIT
        end += SIZE_LIMIT
        if (start >= len(bytes)):
            break
