Emile,<br><br>  I modified the code to this:<br>for line in xml:<br>    ID = line.split()[1]<br>    rslt = &quot;%s,%s&quot;% (line,PIDS[ID])<br>print rslt<br><br>and ended up with this error:<br>Traceback (most recent call last):<br>
  File &quot;/Users/ara/Desktop/biopy_programs/merge2.py&quot;, line 16, in &lt;module&gt;<br>    rslt = &quot;%s,%s&quot;% (line,PIDS[ID])<br>KeyError: &#39;sp.&#39;<br><br>Ara<br><br><br><br clear="all"><br>-- <br>Quis hic locus, quae regio, quae mundi plaga. Ubi sum. Sub ortu solis an sub cardine glacialis ursae.<br>