for index, linkobj in enumerate(myfiles):
    if 'sca' in linkobj.url:
        resp = br.follow_link(text='Download [IMG]', nr=0)
content = resp.read()
with open('output%s.txt' % index, 'w') as fo:
    pass
How to download files from a web based file server with Python Mechanize