Python code creating the AddedError.pdf