Python scripts to convert PDF to JPG