old_contents: import requests
  import http.cookiejar
  import time
  
  
  class CourseFinder:
      """A wrapper for utilizing UofT's Course Finder web service."""
  
      def __init__(self):
          self.host = 'http://coursefinder.utoronto.ca'
  
      def search(self, query='', requirements=''):
          """Perform a UofT Course Finder search and return data as a dict."""
  
          url = '%s/course-search/search/courseSearch/course/search' % self.host
  
          data = {
              'queryText': query,
              'requirements': requirements,
              'campusParam': 'St. George,Scarborough,Mississauga'
          }
  
          cookies = http.cookiejar.CookieJar()
          s = requests.Session()
  
          # Keep trying to get data until a proper response is given
          json = None
          while json is None:
              r = s.get(url, params=data, cookies=cookies)
              if r.status_code == 200:
                  json = r.json()
              else:
                  time.sleep(0.5)
  
          return json
  
new_contents: import requests
  import http.cookiejar
  import time
  
  
  class CourseFinder:
      """A wrapper for utilizing UofT's Course Finder web service."""
  
      def __init__(self):
          self.host = 'http://coursefinder.utoronto.ca'
  
      def search(self, query='', requirements=''):
          """Perform a search and return the data as a dict."""
  
          url = '%s/course-search/search/courseSearch/course/search' % self.host
  
          data = {
              'queryText': query,
              'requirements': requirements,
              'campusParam': 'St. George,Scarborough,Mississauga'
          }
  
          cookies = http.cookiejar.CookieJar()
          s = requests.Session()
  
          # Keep trying to get data until a proper response is given
          json = None
          while json is None:
              r = s.get(url, params=data, cookies=cookies)
              if r.status_code == 200:
                  json = r.json()
              else:
                  time.sleep(0.5)
  
          return json
  
subject: Fix some abiguities