Some python code on rpy2 and also using tikz figures.