old_contents: #! /usr/bin/python2
  from search import indexListing
  from textbookExceptions import UnIndexable
  from mcmaster.classes import allCourses
  from search import indexListing, createIndex
  from itertools import imap
  
  try:
      print "Trying to create the index if it does not exist already"
      createIndex("oersearch")
  except Exception as e:
      print e
  
  print "Downloading course info"
  for c in allCourses():
      try:
          print indexListing(c)
      except UnIndexable as e:
          print e
  
new_contents: #! /usr/bin/python2
  from search import indexListing
  from textbookExceptions import UnIndexable
  from mcmaster.classes import allCourses
  from search import indexListing, createIndex
  from itertools import imap
  
  try:
      print "Trying to create the index if it does not exist already"
      createIndex("oersearch")
  except Exception as e:
      print e
  
  print "Downloading course info"
  for c in allCourses():
      try:
          print c
          print indexListing(c)
      except UnIndexable as e:
          print e
  
subject: print course info when indexing for debug purposes