code: def perform_pilon(self):
          
          for sample in self.metadata:
              try:
                  if sample[self.analysistype].num_contigs > 500 or sample.confindr.contam_status == 'Contaminated':
                      sample.general.polish = False
                  else:
                      sample.general.polish = True
              except AttributeError:
                  sample.general.polish = True
docs: Determine if pilon polishing should be attempted. Do not perform polishing if confindr determines that the
          sample is contaminated or if there are > 500 contigs