def search_genes(id_list,search_field):
    term = " OR ".join(map(lambda x:x+"["+search_field+"]",id_list))
    esearch_result = Entrez.esearch(db="gene",term=term,retmod="xml")
    parsed_result = Entrez.read(esearch_result)
    return parsed_result['IdList']
Use ESearch to convert RefSeq or Gene symbols to standard
dataset/ETHPy150Open taoliu/taolib/Scripts/convert_gene_ids.py/search_genes