code: def copyfileobj(fsrc, fdst, length=16*1024):
      
      while 1:
          buf = fsrc.read(length)
          if not buf:
              break
          fdst.write(buf)
docs: copy data from file-like object fsrc to file-like object fdst