python saving multiple figures into one pdf file,pdf.close()