#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Oct 31 16:36:55 2020

@author: lewis
"""

from Bio import Entrez

Entrez.email = 'lewis@fbb.msu.ru'

file1 = open('wsbs_seq.fasta', 'w')

handle = Entrez.efetch(db="nucleotide", idtype="acc", id="MN240289", rettype="fasta", retmode="text")
file1.write(handle.read())

file1.close()