code: def openIndex(self, filename, description):
  		
  		try:
  			os.remove(filename)
  			self.printd("  Deleted old " + description)
  		except:
  			self.printd("  No " + description + " found")
  			
  		# Now, attempt to open a new index
  		try:
  			files = open(filename, 'wt')
  		except:
  			self.printd("Error: Unable to create file " + filename + " in current folder. Quitting.")
  			return None
  		return files
docs: Attempt to delete and recreate an index, returns open file object or None.