def progress_bar(self, i, total_length, post_text):
    n_bar = 100
    j = (i / total_length)
    sys.stdout.write('\r')
    sys.stdout.write(f"[{('#' * int((n_bar * j))):{n_bar}s}] {int((100 * j))}%  {post_text}")
    sys.stdout.flush()
def progress_bar(self, i, total_length, post_text):
    n_bar = 100
    j = (i / total_length)
    sys.stdout.write('\r')
    sys.stdout.write(f"[{('#' * int((n_bar * j))):{n_bar}s}] {int((100 * j))}%  {post_text}")
    sys.stdout.flush()