Updated tikz2pdf to Python 3
Error handling compatible with Python 3

If pdflatex does not compile, the error thrown by tikz2pdf must be
decoded to an str type in Python 3.
Made tikz2dvi compatible with Python 3