Python Iterate Over Byte Array To Pdf