code: def bonus_worker(self, assignment_id, amount, reason=""):
          ''' Bonus worker '''
          if not self.connect_to_turk():
              return False
          try:
              assignment = self.mtc.get_assignment(AssignmentId=assignment_id)['Assignment']
              worker_id = assignment['WorkerId']
              self.mtc.send_bonus(WorkerId=worker_id, AssignmentId=assignment_id, BonusAmount=str(amount), Reason=reason)
              return True
          except Exception as exception:
              print exception
              return Falsf bonus_worker(self, assignment_id, amount, reason=""):
          ''' Bonus worker '''
          if not self.connect_to_turk():
              return False
          try:
              assignment = self.mtc.get_assignment(AssignmentId=assignment_id)['Assignment']
              worker_id = assignment['WorkerId']
              self.mtc.send_bonus(WorkerId=worker_id, AssignmentId=assignment_id, BonusAmount=str(amount), Reason=reason)
              return True
          except Exception as exception:
              print exception
              return False
docs: Bonus worker