Python create pdf with text and images