os.sendfile(out, in, offset, count)
os.sendfile(out, in, offset, count, [headers, ][trailers, ]flags=0)
Copy count bytes from file descriptor in to file descriptor out starting at offset. Return the number of bytes sent. When EOF is reached return 0.
The first function notation is supported by all platforms that define sendfile().
On Linux, if offset is given as None, the bytes are read from the current position of in and the position of in is updated.
The second case may be used on Mac OS X