<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def update(self, cookies):
 """Add specified cookies to our cookie jar, and persists it. :param cookies: Any iterable that yields http.cookiejar.Cookie instances, such as a CookieJar. """

    cookie_jar = self.get_cookie_jar()
    for cookie in cookies:
      cookie_jar.set_cookie(cookie)
    with self._lock:
      cookie_jar.save()