def fetch_gbwithparts(list_of_NC_accessions, email, folder):
from Bio import Entrez<EOL>from time import sleep<EOL>print('<STR_LIT>')<EOL>for item in list_of_NC_accessions:<EOL><INDENT>Entrez.email = email<EOL>handle = Entrez.efetch(db="<STR_LIT>",<EOL>id=item,<EOL>retmode='<STR_LIT>',<EOL>rettype='<STR_LIT>')<EOL>data = handle.read()<EOL>if not os.path.exists(folder):<EOL><INDENT>os.makedirs(folder)<EOL><DEDENT>with open('<STR_LIT>' % (folder,item), '<STR_LIT:w>') as textfile:<EOL><INDENT>textfile.write(data)<EOL><DEDENT>print('<STR_LIT>' % item)<EOL>sleep(<NUM_LIT:2>)<EOL><DEDENT>
Download genbank files from NCBI using Biopython Entrez efetch.

    Args:
        list_of_NC_accessions (list): a list of strings, e.g ['NC_015758', 'NC_002695']
        email (string):  NCBI wants your email
        folder (string): Where the gb files download to, generally './genomes/'