def update(self, op_code, cur_count, max_count=None, message=''):
    self.pbar.total = max_count
    self.pbar.n = cur_count
    self.pbar.refresh()
def update(self, op_code, cur_count, max_count=None, message=):
    self.pbar.total = max_count
    self.pbar.n = cur_count
    self.pbar.refresh()