Delete temp files before compiling

I've added a couple of lines to delete "temp" files before compiling:
	
	file_name_comp = os.path.splitext(self.caller.file_name)
		temp_exts = ['.blg','.bbl','.aux','.log','.dvi','.ps','.fdb_latexmk','.pdfsync','.synctex.gz']
		for temp_ext in temp_exts:
			file_name_to_del = file_name_comp[0] + temp_ext
			if os.path.exists(file_name_to_del):
				os.remove(file_name_to_del)
				self.caller.output("\n[Delete " + file_name_to_del + "]")

I hope it is useful.