'Create initial connection pool'

def _init_connection(self):

    if (not self.servers):
        raise RuntimeError('No    server    defined')
    server = random.choice(self.servers)
    if (server.scheme in ['http', 'https']):
        self.connection = http_connect([server for server in self.servers if (server.scheme in ['http', 'https'])], timeout=self.timeout, basic_auth=self.basic_auth, max_retries=self.max_retries, retry_time=self.retry_time)
        return
    elif (server.scheme == 'thrift'):
        self.connection = thrift_connect([server for server in self.servers if (server.scheme == 'thrift')], timeout=self.timeout, max_retries=self.max_retries, retry_time=self.retry_time)
