code: def copyto_file_object(self, query, file_object):
          
          response = self.copyto(query)
          for block in response.iter_content(DEFAULT_CHUNK_SIZE):
              file_object.write(block)
docs: Gets data from a table into a writable file object
  
          :param query: The "COPY { table_name [(column_name[, ...])] | (query) }
                             TO STDOUT [WITH(option[,...])]" query to execute
          :type query: str
  
          :param file_object: A file-like object.
                              Normally the return value of open('file.ext', 'wb')
          :type file_object: file
  
          :raise CartoException: