Expression graphs with Python and pydot