old_contents: import sys
  import ssl
  import urllib2
  
  if len(sys.argv) < 3 or len(sys.argv) > 4:
      exit("Usage: %s <URL> <PORT> [CA_FILE]" % sys.argv[0])
  
  host = sys.argv[1]
  port = sys.argv[2]
  cafile = sys.argv[3] if len(sys.argv) > 3 else None
  
  try:
      urllib2.urlopen("https://" + host + ":" + port, cafile=cafile)
  except ssl.CertificateError:
      print("VERIFY FAILURE")
  except urllib2.URLError as exc:
      if not isinstance(exc.reason, ssl.SSLError):
          raise
      print("VERIFY FAILURE")
  else:
      print("VERIFY SUCCESS")
  
new_contents: import sys
  import ssl
  import urllib2
  
  if len(sys.argv) < 3 or len(sys.argv) > 4:
      exit("Usage: %s <HOST> <PORT> [CA_FILE]" % sys.argv[0])
  
  host = sys.argv[1]
  port = sys.argv[2]
  cafile = sys.argv[3] if len(sys.argv) > 3 else None
  
  try:
      urllib2.urlopen("https://" + host + ":" + port, cafile=cafile)
  except ssl.CertificateError:
      print("VERIFY FAILURE")
  except urllib2.URLError as exc:
      if not isinstance(exc.reason, ssl.SSLError):
          raise
      print("VERIFY FAILURE")
  else:
      print("VERIFY SUCCESS")
  
subject: Update run.py