code: def worker_reject(self, chosen_hit, assignment_ids = None):
          ''' Reject worker '''
          if chosen_hit:
              workers = self.amt_services.get_workers("Submitted")
              assignment_ids = [worker['assignmentId'] for worker in workers if \
                                worker['hitId'] == chosen_hit]
              print 'rejecting workers for HIT', chosen_hit
          for assignment_id in assignment_ids:
              success = self.amt_services.reject_worker(assignment_id)
              if success:
                  print 'rejected', assignment_id
              else:
                  print '*** failed to reject', assignment_if worker_reject(self, chosen_hit, assignment_ids = None):
          ''' Reject worker '''
          if chosen_hit:
              workers = self.amt_services.get_workers("Submitted")
              assignment_ids = [worker['assignmentId'] for worker in workers if \
                                worker['hitId'] == chosen_hit]
              print 'rejecting workers for HIT', chosen_hit
          for assignment_id in assignment_ids:
              success = self.amt_services.reject_worker(assignment_id)
              if success:
                  print 'rejected', assignment_id
              else:
                  print '*** failed to reject', assignment_id
docs: Reject worker