__host    = 'ftp2.census.gov'
__user    = 'anonymous'
__pass    = ''
__source  = '/geo/maps/DC2020/PL20/st29_mo/censustract_maps/'
__ext     = '.pdf'

import ftputil, os

host = ftputil.FTPHost(__host, __user, __pass)
host.chdir(__source)

for __root, __dirs, __files in host.walk(host.curdir):
    for __file in __files:
        if __file.endswith(__ext):
            __remote_file = host.path.join(__root, __file)
            print ("Downloading %s" % __remote_file)
            host.download(__remote_file, __file)
print ("Done downloading.")

