An implementation of the visitor pattern for Python.