old_contents: import requests
  import json
  from is_borrower import *
  
  #focus on lender
  #search by only amount, not interest rate
  
  def sort_borrowers(lender_amount, borrowers):
      #borrowers of type Borrower
      #want a lower match score
      borrowers_and_match_score={}
      for borrower in borrowers[1:]:
          diff=abs(borrower.borrow_amount-lender_amount)
          borrowers_and_match_score[diff]=borrower
      #sort backwards becuase you want lower difference
      match_scores_sorted=sorted(borrowers_and_match_score.keys())[::-1]
      sorted_borrowers=[]
      for match_score in match_scores_sorted:
          borrower=borrowers_and_match_score[match_score]
          sorted_borrowers.append(borrower)
      return sorted_borrowers
  
  def get_borrowers(lender_amount, lender_interest_rate):
      borrowers=main()
      return sort_borrowers(lender_amount, borrowers)[:3]
  
new_contents: import requests
  import json
  from is_borrower import *
  
  #focus on lender
  #search by only amount, not interest rate
  
  def sort_borrowers(lender_amount, borrowers):
      #borrowers of type Borrower
      #want a lower match score
      borrowers_and_match_score={}
      for borrower in borrowers:
          diff=abs(borrower.borrow_amount-lender_amount)
          borrowers_and_match_score[diff]=borrower
      #sort backwards becuase you want lower difference
      match_scores_sorted=sorted(borrowers_and_match_score.keys())[::-1]
      sorted_borrowers=[]
      for match_score in match_scores_sorted:
          borrower=borrowers_and_match_score[match_score]
          sorted_borrowers.append(borrower)
      return sorted_borrowers
  
  def get_borrowers(lender_amount, lender_interest_rate):
      borrowers=main()
      return sort_borrowers(lender_amount, borrowers)[:3]
  
subject: include adam