code: def _CheckPythonVersionAndDisableWarnings(self):
      
      if self._checked_for_old_python_version:
        return
      if sys.version_info[0:3] < (2, 7, 9):
        logger.warning(
            'You are running a version of Python prior to 2.7.9. Your version '
            'of Python has multiple weaknesses in its SSL implementation that '
            'can allow an attacker to read or modify SSL encrypted data. '
            'Please update. Further SSL warnings will be suppressed. See '
            'https://www.python.org/dev/peps/pep-0466/ for more information.')
  
        # Some distributions de-vendor urllib3 from requests, so we have to
        # check if this has occurred and disable warnings in the correct
        # package.
        urllib3_module = urllib3
        if not urllib3_module:
          if hasattr(requests, 'packages'):
            urllib3_module = getattr(requests.packages, 'urllib3')
  
        if urllib3_module and hasattr(urllib3_module, 'disable_warnings'):
          urllib3_module.disable_warnings()
  
      self._checked_for_old_python_version = True
docs: Checks python version, and disables SSL warnings.
  
      urllib3 will warn on each HTTPS request made by older versions of Python.
      Rather than spamming the user, we print one warning message, then disable
      warnings in urllib3.