ritten to a new</span>
<span class="sd">        line.</span>
<span class="sd">    output_file : str or file-like:</span>
<span class="sd">        Path to output file (str), or writeable</span>
<span class="sd">        file handle, in which commands will be stored</span>
<span class="sd">    &quot;&quot;&quot;</span>
    <span class="n">cmd_str</span> <span class="o">=</span> <span class="s2">&quot;</span><span class="se">\n</span><span class="s2">&quot;</span><span class="o">.</span><span class="n">join</sp