code: def clear_logfile(logfile):
      
      try:
          os.remove(logfile + '_out.txt')
      except IOError:
          pass
      try:
          os.remove(logfile + '_err.txt')
      except IOError:
          pass
docs: As logfiles are appended to each time the same data are processed, sometimes it is desirable to clear out
      logsfiles from previous iterations
      :param logfile: Base name of logfile