def combined_download(accounts, days=<NUM_LIT>):
client = Client(institution=None)<EOL>out_file = StringIO()<EOL>out_file.write(client.header())<EOL>out_file.write('<STR_LIT>')<EOL>for a in accounts:<EOL><INDENT>ofx = a.download(days=days).read()<EOL>stripped = ofx.partition('<STR_LIT>')[<NUM_LIT:2>].partition('<STR_LIT>')[<NUM_LIT:0>]<EOL>out_file.write(stripped)<EOL><DEDENT>out_file.write("<STR_LIT>")<EOL>out_file.seek(<NUM_LIT:0>)<EOL>return out_file<EOL>
Download OFX files and combine them into one

    It expects an 'accounts' list of ofxclient.Account objects
    as well as an optional 'days' specifier which defaults to 60