from Bio import Entrez from getLocusTag import getLocusTag locus = getLocusTag(407243518) print locus