                          <span class="c1"># Check for output data</span>
    <span class="k">raise</span>
<span class="k">else</span><span class="p">:</span>
    <span class="n">outStream</span><span class="o">=</span><span class="n">Stream</span><span class="p">(</span><span class="n">stream_num</span><span class="p">)</span>                <span class="c1"># Open output stream</span>
    <span class="n">data</span><span class="o">=</span><span class="n">outStream</span><span class="o">.</span><span class