updated hawkAPI2.py with self.setretry function