Python interface to pgfplots