result = "%s\t%s\t%s" %(id,gene_symbol,ptms)This is very trivial, but you could change the above line to: result = "\t".join(id, gene_symbol, ptms)
So trivial that you did not even attempt to test it, I presume. It must obviously work... except it doesn't :)
result = "\t".join((id, gene_symbol, ptms)) -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list