Well, my code snippet was rather meant as an inspiration of how to access the uniprot_id and corresponding gene_name from swissprot. Once you have that mapping (e.g. as a dictionary) it should be easy to do the mapping from that to your problem setting.

It's a good beginning I think. But my input file is like this : "Uniprot_ID--->position", one per line.
So I just want to translate Uniprot_ID to Gene_name in output. Does anything exist yet ?
Thx a lot !