new_contents: from PyPDF2 import PdfFileWriter, PdfFileReader
  import os
  
  input=[]
  
  files = os.listdir('infiles')
  for file in files:
  	input = PdfFileReader(open("infiles/"+file, "rb"))
  	for idx,x in enumerate(input.pages):
  		output = PdfFileWriter()
  		output.addPage(input.getPage(idx))
  		outputStream = open("outfiles/"+file.split(".")[0]+str(idx)+".pdf","wb")
  		output.write(outputStream)
  
subject: Create PDFSpliter.py