Make serialisable expression graphs in Python and render using graphviz or dot