update default latex template

Add more tikz libraries and set pdg plot compat to 'new'.
use lualatex if found on the system otherwise use pdflatex
make it compatible with python 3