code: def worker_unreject(self, chosen_hit, assignment_ids = None):
          ''' Unreject worker '''
          if chosen_hit:
              workers = self.amt_services.get_workers("Rejected")
              assignment_ids = [worker['assignmentId'] for worker in workers if \
                                worker['hitId'] == chosen_hit]
          for assignment_id in assignment_ids:
              success = self.amt_services.unreject_worker(assignment_id)
              if success:
                  print 'unrejected %s' % (assignment_id)
              else:
                  print '*** failed to unreject', assignment_if worker_unreject(self, chosen_hit, assignment_ids = None):
          ''' Unreject worker '''
          if chosen_hit:
              workers = self.amt_services.get_workers("Rejected")
              assignment_ids = [worker['assignmentId'] for worker in workers if \
                                worker['hitId'] == chosen_hit]
          for assignment_id in assignment_ids:
              success = self.amt_services.unreject_worker(assignment_id)
              if success:
                  print 'unrejected %s' % (assignment_id)
              else:
                  print '*** failed to unreject', assignment_id
docs: Unreject worker