code: def justify_token(tok, col_width):
      
      get_len = tools.display_len if PY3 else len
      tok_len = get_len(tok)
      diff_len = tok_len - len(tok) if PY3 else 0
  
      cols = (int(math.ceil(float(tok_len) / col_width))
              if col_width < tok_len + 4 else 1)
  
      if cols > 1:
          return tok.ljust((col_width * cols) + (4 * cols) - diff_len)
      else:
          return tok.ljust(col_width + 4 - diff_len)
docs: Justify a string to fill one or more columns.