(An easy way to) convert images to pdf from python