What is the way to retrieve genomes from ncbi via biopython? 
I am able to get a record for my genome of interest, and also i am able to download it manually from [search][1]

But how to download it inside a script? 

    from Bio import Entrez
    Entrez.email = "my_email@email.ru"
    handle = Entrez.esearch(db="genome", term="Drosophila eugracilis[Orgn]", idtype="acc")
    record = Entrez.read(handle)
    for i in record.keys():
        print i,record[i]


  [1]: https://www.ncbi.nlm.nih.gov/genome/?term=Drosophila%20eugracilis
`esearch/elink` commands would be different depending on the genome of interest. 

For example, following command can be used to download assembly in the fasta format using NCBI Unix utils:

    esearch -db genome -query "6863"|elink -target assembly|esummary|xtract -pattern FtpPath_RefSeq -element FtpPath_RefSeq

This should give you the URL where assembly files are saved and relevant files can be downloaded from that URL.