with open("file_1.txt") as f1, open("file_2.txt") as f2:
with open('a', 'w') as a, open('b', 'w') as b: do_something()