code: def retrieve_file_from_EBI(resource, silent = True):
      '''Retrieve a file from the RCSB.'''
      #import sys
      #import traceback
      #print(resource)
      #print('\n'.join(traceback.format_stack()))
      #sys.exit(0)
      if not silent:
          colortext.printf("Retrieving %s from EBI" % os.path.split(resource)[1], color = "aqua")
      attempts = 10
      while attempts > 0:
          try:
              return get_insecure_resource("ftp.ebi.ac.uk", resource)
          except:
              print('FAILED, RETRYING')
              attempts -= 1
              time.sleep(3f retrieve_file_from_EBI(resource, silent = True):
      '''Retrieve a file from the RCSB.'''
      #import sys
      #import traceback
      #print(resource)
      #print('\n'.join(traceback.format_stack()))
      #sys.exit(0)
      if not silent:
          colortext.printf("Retrieving %s from EBI" % os.path.split(resource)[1], color = "aqua")
      attempts = 10
      while attempts > 0:
          try:
              return get_insecure_resource("ftp.ebi.ac.uk", resource)
          except:
              print('FAILED, RETRYING')
              attempts -= 1
              time.sleep(3)
docs: Retrieve a file from the RCSB.