You can use fileinput module and use fileinput.input function to read one or more text files at the same time.