Better connecting python snippets in LaTeX.

Using the text insertions from dexy.