def wrap(msg, indent, indent_first=True):
    """
    Helper function that wraps msg to 120-chars page width. All lines (except maybe 1st) will be prefixed with
    string {indent}. First line is prefixed only if {indent_first} is True.
      :param msg: string to indent
      :param indent: string that will be used for indentation
      :param indent_first: if True then the first line will be indented as well, otherwise not
    """
    wrapper.width = 120
    wrapper.initial_indent = indent
    wrapper.subsequent_indent = indent
    msg = wrapper.fill(msg)
    return msg if indent_first else msg[len(indent):]
Helper function that wraps msg to 120-chars page width. All lines (except maybe 1st) will be prefixed with
    string {indent}. First line is prefixed only if {indent_first} is True.
      :param msg: string to indent
      :param indent: string that will be used for indentation
      :param indent_first: if True then the first line will be indented as well, otherwise not