code: def _get_next_path(headers):
      
      links = headers.get('Link', '')
      matches = re.match('<([^>]+)>; rel="next"', links)
      if matches:
          parsed = urlparse(matches.group(1))
          return "?".join([parsed.path, parsed.query])
docs: Given timeline response headers, returns the path to the next batch