text: import random
  
  MAX_FILES = {
      "Alejandro_Toledo": 39,
      "Ariel_Sharon": 77,
      "Arnold_Schwarzenegger": 42,
      "Donald_Rumsfeld": 121,
      "Gerhard_Schroeder": 109,
      "Gloria_Macapagal_Arroyo": 44,
      "Hugo_Chavez": 71,
      "Jacques_Chirac": 52,
      "Jean_Chretien": 55,
      "Jennifer_Capriati": 42,
      "John_Ashcroft": 53,
      "Junichiro_Koizumi": 60,
      "Laura_Bush": 41,
      "Lleyton_Hewitt": 41,
      "Luiz_Inacio_Lula_da_Silva": 48,
      "Serena_Williams": 52,
      "Tony_Blair": 144,
      "Vladimir_Putin": 49
  }
  
  lfw_urls = []
  
  def create_all_images_urls():
      global lfw_urls
      for p, max_f in MAX_FILES.items():
          for i in range(max_f):
              fn = f"http://vis-www.cs.umass.edu/lfw/images/{p}/{p}_{i+1:04d}.jpg"
              lfw_urls.append(fn)
  
  def get_random_lfw_url():
      global lfw_urls
      i = random.randint(0, len(lfw_urls)-1)
      ret_url = lfw_urls[i]
      del lfw_urls[i]
  
      return ret_url
  
  create_all_images_urls()
  
  if __name__ == "__main__":
      print("len(lfw_urls)", len(lfw_urls))
      for i in range(139):
          print(get_random_lfw_url())