The function accepts now one additional argument (type).
Redisigned draft function.
Now depending of what object we want to generate (mail or letter)
the function will behave differently. If we want to send a mail
the way will be the same as before, if we want to send a letter we
try to generate a PDF file.
Added utf-8 coding to avoid error when using local characters.
Imported additional modules we need to generate PDFs.
Added Vendor class as imported module.
We need acces to that class to find data related to vendors.
Styling as code must be clean and follow the python way.