fixes for python 3
fix tikz