Python creation of PPG PDF