<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def openIndex(self, filename, description):
 		"""Attempt to delete and recreate an index, returns open file object or None."""

		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