Merge PDF files with Python

from PyPDF2 import PdfFileMerger, PdfFileReader
merger = PdfFileMerger() for i in range(len(games)):
    merger.append(PdfFileReader(open(filename, 'rb')))
merger.write(out_filename)